TokenProvider class

Constructors

TokenProvider(SdkConfig _config, TokenStore _store, ExsitedClient _client)

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tokenUrl → String
no setter

Methods

accessToken() → Future<String>
A usable token, fetched only if needed.
invalidateAccessToken(String? deadAccessToken) → Future<bool>
Evict a token the API has refused, if the cache still holds it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh(String? stale) → Future<String>
Replace a token the API has rejected.
toString() → String
A string representation of this object.
inherited

Operators

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