User Profile
Clerk’s prebuilt account-management sheet. The user can edit their profile, manage emails, phones, external accounts, passkeys, sessions, MFA, and delete their account.userprofile with status: "closed" when the sheet dismisses, so you can refresh the UI for any profile edits the user just made.
event: "userprofile": not_configured, unsupported_os, sdk_not_linked.
Sign Out
Revokes the current session server-side, stops the JWT refresher, clearswindow.clerkJWT, clears attribution IDs, and writes the signed-out cookie state.
navigate is your SPA router’s navigation function.
Errors emit with event: "signOut": not_configured, signout_failed, unsupported_os, sdk_not_linked.
Multi-Tenant
Callclerk://configure again with a different publishable key. The bridge wipes the secure session store, signs the user out, clears attribution IDs, clears SSR cookies, and re-emits ready with status: "reconfigured".
reconfigure_in_progress. Wait for the first ready before issuing another.
Attribution Sync
Auto-syncs the Clerk userId into OneSignal and AppsFlyer. On by default. Every successful sign-in or sign-up pushes the userId to both SDKs, sign-out or tenant switch clears them.Resources
NPM Package
despia-native