Log out (invalidate sessionToken + revoke Firebase refresh tokens)
post_auth_logoutLogs out the current session without revoking it.
Browser warning: calling this endpoint via XHR/fetch from a different origin than secure-flows.com
is not a reliable way to clear hosted-login cookies. For browser apps (especially localhost), prefer the
redirect helper GET /api/v1/auth/logout?session_token=...&redirect_uri=....
Behavior:
Invalidates the current
sessionTokenby incrementingtokenRevision(no new token is issued).Calls Firebase
revokeRefreshTokens(firebaseUid)using the session’s stored Firebase UID.Sets
Clear-Site-Data: "cookies"to clear browser cookies (including Firebase session cookie).
Session payload and session row are not deleted or modified (other than tokenRevision).
Source: POST /api/v1/auth/logout
Requires auth.sessionToken and forwards it as a Bearer token.
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 | No | ||
| params | No | ||
| connection | Yes |