Four host events interact with the SDK. The concepts are shared across both
SDKs (read the overview); this page gives the
exact React Native code.
1. App launch (every time)
Identify unconditionally on launch so users who installed before you added
ClarioDesk aren’t left as unlabeled devices. identify() is idempotent and
cheap.
2. Fresh login or signup
This overwrites the label on the existing device row. The same device and key
are reused.
3. Logout
This preserves the device key while changing the signed identity epoch. In
label-only mode, reset() is still available for full installation isolation.
4. User switch (A → B without restart)
Await clear before activating user B. reset() deprovisions this installation;
it is not logout or customer erase.
Checking state