Post sign-in routes: open the prebuilt profile sheet, sign out, sync the user ID into analytics SDKs, switch tenants.Documentation Index
Fetch the complete documentation index at: https://setup.despia.com/llms.txt
Use this file to discover all available pages before exploring further.
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.| Param | Values | Default |
|---|---|---|
dismissable | true, false, 1, 0, yes, no | true |
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.| Param | Values | Default |
|---|---|---|
enabled | true, false | true |
Resources
NPM Package
despia-native