Reference
Remy Reference/interface/session.refreshIdentity
?

session.refreshIdentity

Upgrades a live anonymous session to the now-signed-in user without dropping the call.
session.refreshIdentity() → Promise<void>

Upgrades a live session from anonymous to the just-signed-in user, the frontend half of progressive auth: call it right after in-app verification succeeds, and subsequent tool calls run as the verified user with their roles while the agent's Current User context refreshes, all without tearing down the conversation. It is upgrade-only (an already-identified session rejects with already_identified) and requires the session to have been started by this same browser.

Upgrade after in-app verification
await auth.verifySmsCode(phone, code); // your in-app verification
await session.refreshIdentity();       // upgrade the live call in place