StaticTokenSource class final

Returns the same token for every call. Use for API keys, manually-issued long-lived JWTs, and tests.

Implemented types

Constructors

StaticTokenSource(String _value)
Builds a source that always returns value.

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
token() Future<String>
Returns the token to send. May be sync via Future.value(...) or genuinely async when the implementation refreshes against an IdP.
override
toString() String
A string representation of this object.
inherited

Operators

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