DVGoogleAccessTokens class
Access tokens for one service account and scope: minted on demand, kept until shortly before they expire, and never requested twice at once.
Constructors
- DVGoogleAccessTokens({required DVGoogleServiceAccount account, String scope = dvFirebaseMessagingScope, DVHttpSend transport = dvSendHttpRequest, DateTime clock()?, Duration refreshMargin = const Duration(minutes: 1)})
Properties
- account → DVGoogleServiceAccount
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- refreshMargin → Duration
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scope → String
-
final
- transport → DVHttpSend
-
final
Methods
-
call(
) → Future< String> -
The current token, exchanging for a new one when there is none or it is
about to lapse. Usable directly as a
DVAccessTokenSupplier. -
invalidate(
) → void - Forgets the cached token, e.g. after the API answered 401.
-
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