Skip to content
getgeolens.com

Logout

POST
/auth/logout/
curl --request POST \
--url https://example.com/api/auth/logout/ \
--header 'Authorization: Bearer <token>'

Revoke all refresh tokens and bump token_version for the current user.

SEC-S15 (Phase 1062-01): revoke_all_tokens bumps User.token_version so the access JWT used for this logout call (and any other outstanding access JWTs) are rejected on the next authenticated request — closing the “logout doesn’t invalidate the access JWT” gap.

Successful Response

Bad request — invalid query parameters or payload

Unauthorized — missing or invalid credentials

Forbidden — caller lacks access to this resource

Not found

Validation error

Internal server error