AuthManager class

Manages token caching, persistence, and single-flight refreshes.

This class backs the higher-level auth API and the automatic 401 retry flow used by the SDK request layer.

Constructors

AuthManager.new(TokenStore _store)
Creates an authentication manager backed by _store.

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>
Clears the in-memory cache and the underlying TokenStore.
load() Future<TokenPair?>
Loads tokens from memory or storage.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refreshSingleFlight(RefreshExecutor executor) Future<TokenPair?>
Runs a refresh operation while ensuring only one refresh is in flight.
save(TokenPair tokens, {required bool rememberMe}) Future<void>
Saves tokens to memory and persistent storage.
toString() String
A string representation of this object.
inherited

Operators

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