TokenHandler

interface TokenHandler

Token handler.

Implement this handler to receive token events from the sdk and to handle backend token renewals. The instance can be set in ConnectOptions.

Functions

Link copied to clipboard
abstract fun renewedTokens(newAccessToken: String, newRefreshToken: String)

Called when an access token and refresh token are renewed and need persisted.

Link copied to clipboard
abstract fun renewTokens(expiredAccessToken: String?, refreshToken: String?, complete: RenewTokensCallback)

Called when an access token is missing or expired that must be renewed via the backend.