AuthDataManager class
AuthDataManager manages the Solid-OIDC authentication session:
- persists enough config to restore
SolidAuthManageracross app restarts - caches auth data in memory to avoid repeated secure-storage reads
- delegates token refresh and logout to
SolidAuthManager
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
-
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
Static Methods
-
getAccessToken(
) → Future< String?> - Returns the current (refreshed if expired) access token, or null.
-
getAuthManager(
) → SolidAuthManager? -
Exposes the live
SolidAuthManagerfor DPoP proof generation and logout. -
getLogoutUrl(
) → Future< String?> - Returns the logout endpoint URI from the OIDC discovery document, or null.
-
getWebId(
) → Future< String?> - Returns the cached WebID, falling back to secure storage.
-
loadAuthData(
) → Future< SolidAuthData?> -
Returns current
SolidAuthData, refreshing the token if expired. -
removeAuthData(
) → Future< bool> - Clears cached state and removes persisted config from secure storage.
-
saveAuthData(
SolidAuthData authData, SolidAuthManager authManager, {String? oidcClientId, String? redirectUri}) → Future< void> - Save auth data after a successful login.