validateToken method

  1. @override
Future<AuthenticationInfo?> validateToken(
  1. Session session,
  2. String token
)
override

Validates an authentication token and returns the associated authentication information.

Returns AuthenticationInfo if the token is valid, or null if the token is invalid, expired, or revoked.

Implementation

@override
Future<AuthenticationInfo?> validateToken(
  final Session session,
  final String token,
) async {
  return jwt.authenticationHandler(session, token);
}