AuthenticationHandler typedef

AuthenticationHandler = Future<AuthenticationInfo?> Function(Session session, String token)

Returns authentication information for a given Session and token or null if the key is invalid.

Implementation

typedef AuthenticationHandler = Future<AuthenticationInfo?> Function(
  Session session,
  String token,
);