onSessionRenewalFailed

open override fun onSessionRenewalFailed(throwable: Throwable?, onResult: (String?) -> Unit)

Is called if an automatic session renewal triggered by the SDK itself fails. The client app needs to call the onResult function to set a new access token or null in case of error.

Implement this method to specify a custom behavior for the token retrieval. If not implemented an authorization will be performed automatically which will result in showing a sign in mask for the user.

Parameters

throwable

The error that caused the session renewal to fail if available.