renewedTokens

abstract fun renewedTokens(newAccessToken: String, newRefreshToken: String)

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

Parameters

newAccessToken

The user's newly acquired access token.

newRefreshToken

The user's newly acquired refresh token.

This method will be called when an access token and refresh token have been renewed and need persisted. The listener should persisted the new tokens in device local storage in a non-cloud-synchronized manner. If the tokens are accidentally shared between multiple devices, frontend renewal on one device may cause the other devices to be logged out triggering a backend renewal request via renewTokens.