Clears all locally stored SDK state and generates a new anonymous user id.
Signature
What gets cleared
- User identity: a fresh anonymous UUID is generated and persisted
- All user attributes
- Any pending (unredeemed) claim; a later
redeem() resolves { status: 'none' }
- Queued signals and cached SDK data
A pending deferred claim is lost on reset(): it can no longer be redeemed from this
browser. Real (server-side) entitlements are unaffected; they belong to the user id they
were earned under.
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