reauthorizeImplicitFlow

fun reauthorizeImplicitFlow(idToken: String, nonce: String)

Reauthorizes the implicit authentication flow with a new token after expiration.

Call this method when you receive an NRError.AuthorizationRequired error via ChatEventListener.onError during an active authenticated session. This refreshes the authentication without requiring a full session restart.

Important: This method should only be called while there is an active session that was originally started with implicit authentication.

Parameters

idToken

A fresh OpenID Connect ID token obtained from your identity provider.

nonce

The nonce value used when requesting the new token, for replay protection.