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
- 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