Skip to main content
Clears all locally stored SDK state and generates a new anonymous user id.
The language set with setLanguage() survives reset(). It is a preference of the browser, like appearance, not user state, so a logout leaves it in place. Only clearLanguage() removes it.

Signature

What gets cleared

  1. User identity: a fresh anonymous UUID is generated and persisted
  2. All user attributes
  3. A claim saved for redeem()
  4. Queued signals and cached SDK data
reset() revokes nothing. Claims already made, and the real (server-side) entitlements they can lead to, belong to the user id they were made under and are unaffected.

When to call

  • Logout, so the next visitor on this browser doesn’t inherit the previous user’s state.
  • Account switch: reset() first, then identify() the new user.

Example