Insurance SDK — Demo launcher

branch: feat/first-version

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)

partnerCustomerId (sub)fb750182-dec1-4ab9-a832-8138f9dfddd2internalCustomerNumber510007email[email protected]phone+48512345678dateOfBirth1985-03-15policies5000020230525, 5000021230601, 5000020230716, 5000021230410

Sending demo-token:fb750182-dec1-4ab9-a832-8138f9dfddd2 — requires ALLOW_DEMO_TOKEN=true on the backend. The id after the colon becomes the session sub and the OIDC_TOKEN header sent to the bank API.

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:f…f9dfddd2
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",
    "bankAccountNumber": "PL08109024025854652479328467"
  }
}

Quick links

Direct navigation — these reuse the current session cookie (theme: light).

Start mock flowPOP age 18-69POP already insuredDebug

After-Sales (Moje ubezpieczenia)

Resume Application (DOKOŃCZ WNIOSEK)