TokenProvider
interface TokenProvider
TokenProvider.kt
Interface that defines the properties of a TokenProvider. Token Providers are objects that the Sensibill SDK uses to retrieve user OAuth tokens. Tokens retrieved from a token provider are used to authenticate API calls on behalf of the token owner (ie, Sensibill User)
Types
Link copied to clipboard
interface OnTokenProviderListener
Interface that defines that properties of a OnTokenProviderListener OnTokenProviderListener are objects that the Sensibill SDK will use to know when new token is available
Functions
Link copied to clipboard
abstract fun provideTokenReplacement(oldAuthToken: String?, userIdentifier: String, listener: TokenProvider.OnTokenProviderListener)
Called by Sensibill SDK when a OAuth token is required (ie on first login, token expiration)