CustomTokenSource class

A custom token source that executes provided logic to fetch credentials.

This allows you to implement your own token fetching strategy with full control over how credentials are generated or retrieved.

Implemented types
Available extensions

Constructors

CustomTokenSource(CustomTokenFunction function)
Initialize with a custom token generation function.

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

cached({TokenStore? store, TokenValidator? validator}) CachingTokenSource

Available on TokenSourceConfigurable, provided by the CachedTokenSource extension

Wraps this token source with caching capabilities.
fetch(TokenRequestOptions options) Future<TokenSourceResponse>
override
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