Skip to content

Local logout only: revokes our session and clears our cookie. The IdP's

POST
/auth/logout
curl --request POST \
--url http://localhost:3001/auth/logout \
--header 'Authorization: Bearer <token>'

Own session is deliberately left alone — RP-initiated logout (redirecting to the provider’s end_session_endpoint) is not implemented, so signing out of the OMS does not sign the user out of their other applications.

Reads the raw cookie itself rather than requiring Extension<AuthContext> so it stays idempotent: a missing, already-revoked, or expired session still gets a clear_cookie_header in the response instead of a 401.

Session revoked and cookie cleared (idempotent)