Log out (browser redirect helper; first-party cookie clearing)
get_auth_logoutBrowser-friendly logout endpoint for cross-site clients (e.g. apps running on localhost).
Use this as a top-level navigation (not XHR/fetch) so Clear-Site-Data is applied in a
first-party context on secure-flows.com, making cookie/session clearing reliable even when
third-party cookies are blocked.
Critical client rules:
Clear your in-app
sessionTokenstate before navigating.Never include
session_tokeninsideredirect_uri(that would silently renew and defeat logout).
This endpoint (best-effort / idempotent for browser UX):
Invalidates the provided
session_tokenby incrementingtokenRevisionwhen the token still matches an active session (no new token is issued).If the session is already expired/revoked or the revision was superseded by renew, still completes logout UX (does not return 401 solely for that reason).
Revokes Firebase refresh tokens for the session’s stored Firebase UID when known.
Sets
Clear-Site-Data: "cookies".Redirects the browser to
redirect_uri.
Source: GET /api/v1/auth/logout 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 |