AuthTokenProvider class abstract
Abstract interface for providing auth tokens to the API layer.
Host applications implement this to bridge their auth system (e.g., OpenID Connect, Firebase Auth) to the core's AuthInterceptor.
Constructors
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
-
ensureValidAccessToken(
) → Future< String?> - Returns a valid access token, refreshing if near expiry.
-
forceRefreshAccessToken(
) → Future< String?> - Forces a token refresh, ignoring cached expiry.
-
logout(
) → Future< void> - Logs out the current user and clears all tokens.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited