Skip to content
POST
/auth/logout
curl --request POST \
--url 'https://example.com/auth/logout?full=false'

Clear auth cookies and revoke token (SEC-57: POST to prevent CSRF via GET).

Optional RP-initiated logout via ?full=true. POST only: a state-changing GET could be triggered cross-site (image tag, link) to sign a user out.

full
Full
boolean

Successful Response

Media typeapplication/json

Example generated

example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}