Session login callback (redirect)
auth_session_callbackBrowser redirect endpoint used after hosted /app/sessions/login. No Authorization header.
Verifies
firebaseToken(Firebase ID token).Ensures
client_redirect_uriis allowlisted forapp_id(same rules asvalidate-redirect).Create vs renew: If
session_tokenis absent, reuses the newest active session for(workspace_name, Firebase UID, app_id)or creates one (get-or-create). Optionalpayload(URL-encoded JSON object, default{}) is stored only on create — ignored when reusing an existing session. Ifsession_tokenis present (previous session JWT, may be expired), renews that session;payloadmust not be sent on the same request. Optionalttl_secondsapplies to both paths (default 0 = unlimited; otherwise 60–604800). When the Firebase token includesemail, the server best-effort persists or backfills it on the workspace end-user row (audit display only).Responds with
302 Foundtoclient_redirect_uriwith query paramssessionTokenand, if provided,state.
If client_redirect_uri is not allowed for app_id, responds 400 and does not
redirect (open-redirect mitigation). Other failures return an HTTP error status with a JSON
{"status", "error"} body and do not redirect.
Source: GET /api/v1/auth/callback No Authorization header is required. Prefer connection.workspaceName and connection.appId as stable config instead of generating identity fields dynamically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| auth | No | ||
| body | No | ||
| query | Yes | ||
| params | No | ||
| connection | Yes |