Insurance SDK — Demo launcher
Simulates the mobile host. Builds the handoff body and POSTs it to /api/sdk/handoff with the chosen access token, then loads the portal.
Access token (TokenProvider.getAccessToken)
Sending demo-token — requires ALLOW_DEMO_TOKEN=true on the backend.
Theme (PreferencesProvider.getThemeTag)
Changing the theme re-runs the handoff and reloads so the cookie applies everywhere.
Headers sent to /api/sdk/handoff
Authorization: Bearer demo-token Content-Type: application/json
Body sent to /api/sdk/handoff
{
"lang": "en",
"theme": "light",
"startPath": "/products",
"context": {
"channel": "banking-app",
"sessionId": "",
"employeeId": "EMP-789",
"assistId": "AST-456"
}
}Quick links
Direct navigation — these reuse the current session cookie (theme: light).