DSTokenManager class

Manages authentication tokens for the Firebase provider

Constructors

DSTokenManager()

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

cleanupExpiredTokens() Future<void>
Cleans up expired tokens automatically
clearTokens() Future<void>
Clears all stored tokens
getActiveTokens() Map<String, String>
Gets all active tokens for debugging purposes
getToken(String userId) Future<String?>
Retrieves a valid token, returns null if expired
getTokenExpiration(String token) DateTime?
Gets token expiration time
isFirebaseToken(String token) bool
Validates a Firebase JWT token structure
isTokenExpired(String token) bool
Checks if token is expired
isTokenValid(String token) bool
Validates a token format and expiration
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshToken(String userId, String newToken, {int expiresIn = 3600}) Future<void>
Refreshes an existing token
removeToken(String userId) Future<void>
Removes a token
storeToken(String userId, String token, {int expiresIn = 3600}) Future<void>
Stores a new token with expiration
toString() String
A string representation of this object.
inherited

Operators

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