TokenStore class abstract

Persists authentication tokens for the SDK.

Implement this interface to control how login and refresh tokens are stored. The SDK calls save, read, and clear through AuthManager.

Implementers

Constructors

TokenStore.new()

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

clear() Future<void>
Removes any stored session data.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read() Future<TokenPair?>
Loads the last saved token pair, or null if none exists.
save(TokenPair tokens, {required bool rememberMe}) Future<void>
Persists tokens.
toString() String
A string representation of this object.
inherited

Operators

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