OAuthSessionManager class
Constructors
Properties
- clientId → String
-
final
- clientSecret → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoggedIn → bool
-
no setter
- minValidFor → Duration
-
Your current heuristic: treat tokens as “good” if valid at least 8 hours more.
If you want “refresh only when nearly expired”, set this to Duration.zero.
final
- refreshSkew → Duration
-
Refresh a little early to avoid edge-of-expiry failures.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverUrl → Uri
-
final
Methods
-
getValidAccessTokenOrThrow(
) → Future< String> - Returns current access token if sufficiently valid, otherwise refreshes. Throws if not logged in or refresh fails.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshOrThrow(
) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited