TokenManagerImpl class

The TokenManagerImpl class provides a concrete implementation of the TokenManager interface, using FlutterSecureStorage to securely manage access and refresh tokens.

Implemented types

Constructors

TokenManagerImpl()

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 from secure storage.
override
clearRefreshToken() Future<void>
Clears the refresh token from secure storage.
override
clearTokens() Future<void>
Clears both the access and refresh tokens from secure storage.
override
getAccessToken() Future<String?>
Retrieves the access token from secure storage.
override
getRefreshToken() Future<String?>
Retrieves the refresh token from secure storage.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveAccessToken(String token) Future<void>
Saves the access token to secure storage.
override
saveRefreshToken(String token) Future<void>
Saves the refresh token to secure storage.
override
toString() String
A string representation of this object.
inherited

Operators

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