Configurable Token Source
A configurable token source takes in a TokenRequestOptions when requesting credentials.
Inheritors
Functions
Link copied to clipboard
fun ConfigurableTokenSource.cached(store: TokenStore = InMemoryTokenStore(), validator: TokenValidator = defaultValidator): CachingConfigurableTokenSource
Wraps the token store with a cache so that it reuses the token as long as it is valid.
Link copied to clipboard
abstract suspend fun fetch(options: TokenRequestOptions = TokenRequestOptions()): TokenSourceResponse