authenticationHandler method

Future<AuthenticationInfo?> authenticationHandler(
  1. Session session,
  2. String key
)

Validates an authentication token and returns the associated authentication info.

This handler delegates to the tokenManager to validate the provided key against all registered token managers. Returns AuthenticationInfo if the token is valid, or null if validation fails.

Implementation

Future<AuthenticationInfo?> authenticationHandler(
  final Session session,
  final String key,
) async {
  return tokenManager.validateToken(session, key);
}