TokenStorage class abstract

Token storage interface

Implementers

Constructors

TokenStorage()

Properties

accessToken String?
Gets the current access token
no setter
hashCode int
The hash code for this object.
no setterinherited
refreshToken String?
Gets the current refresh token
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenChanges Stream<TokenChangeEvent>?
Stream of token changes (optional implementation)
no setter

Methods

addTokenChangeListener(TokenChangeCallback callback) → void
Adds a listener for token changes
clearTokens() Future<void>
Clears all tokens
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeTokenChangeListener(TokenChangeCallback callback) → void
Removes a token change listener
saveTokens({required String accessToken, required String refreshToken}) Future<void>
Saves tokens
toString() String
A string representation of this object.
inherited

Operators

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