validateToken abstract method

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

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

Future<AuthenticationInfo?> validateToken(
  final Session session,
  final String token,
);