TokenManager class abstract

The TokenManager interface defines the contract for managing access and refresh tokens. It includes methods for retrieving, saving, and clearing both types of tokens.

Implementers

Constructors

TokenManager()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearAccessToken() Future<void>
Clears the access token.
clearRefreshToken() Future<void>
Clears the refresh token.
clearTokens() Future<void>
Clears both access and refresh tokens.
getAccessToken() Future<String?>
Retrieves the access token.
getRefreshToken() Future<String?>
Retrieves the refresh token.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveAccessToken(String token) Future<void>
Saves the access token.
saveRefreshToken(String token) Future<void>
Saves the refresh token.
toString() String
A string representation of this object.
inherited

Operators

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