updateDeviceToken

Updates the stored device token and refreshes the native Clerk state.

This is the supported way to swap the native device token after initialize has already run. The new token is persisted before forcing a fresh client/environment fetch, and that refresh intentionally omits the current in-memory client id header so a stale anonymous client cannot conflict with the newly supplied token.

Return

A ClerkResult indicating whether the token sync and refresh succeeded.

Parameters

deviceToken

The non-blank Clerk device token to persist and use for the refresh.