TokenAuthenticator constructor
TokenAuthenticator([
- Map<
String, TokenGrant> tokens = const {}
Creates a token authenticator from a tokens map (token → grant).
Implementation
TokenAuthenticator([Map<String, TokenGrant> tokens = const {}])
: _tokens = Map.of(tokens);