provideTokenReplacement

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)

Parameters

oldAuthToken

the previous OAuth token, will be null of no token was provided previously

userIdentifier

the identifier identifying the user for which a token should be provided

listener

The listener to which the newly generated token should be provided to