Optional
onOptional
onCalled when the SDK runs into an error while refreshing the session key.
Optional
onOptional
onCalled after SDK successfully refreshes the session key.
Optional
onNeeds to fetch a new token and pass the new token to the SDK via resolve(), or reject() if error has occurred during the fetch.
Called when the session is explicitly closed on refresh.