TokenService class

Class represents the tokens service

Constructors

TokenService(TokenServiceConfigurations configurations)
Create an instance of TokenService or get the created one.
factory

Properties

configurations TokenServiceConfigurations
The configuration of this service.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createTokenPair(String userId, TokenServiceConfigurations configurations) Future<TokenPair>
Create a token with its related refresh token.
getRefreshToken(String id) Future
Get the refresh token related to record id.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeRefreshToken(String id) Future<void>
remove the refresh token related to record id.
start() Future<void>
Start the tokens service.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited