BearerTokenPluginConfig
class BearerTokenPluginConfig
Configuration for the BearerTokenPlugin.
Provide an accessTokenProvider that returns the access token to attach, or null if no valid token is available. The provider is invoked on every request.
Optionally set eventsFlow so the plugin can emit NoAccessTokenAvailableEvent when the provider returns null.
Properties
Link copied to clipboard
A suspend lambda that returns the current valid access token, or null if none is available.
Link copied to clipboard
Optional credential identifier for NoAccessTokenAvailableEvent.
Link copied to clipboard
var eventsFlow: ERROR CLASS: Symbol not found for MutableSharedFlow<com/okta/authfoundation/events/Event>??
Optional events flow for emitting NoAccessTokenAvailableEvent. When set, a NoAccessTokenAvailableEvent is emitted whenever accessTokenProvider returns null.