Skip to content

Revoke refresh token

POST
/api/auth/revoke
curl --request POST \
--url http://localhost:3001/api/auth/revoke \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "refresh_token": "example" }'

Revoke a refresh token to invalidate it

Refresh token to revoke

Media typeapplication/json
object
refresh_token
string
Examplegenerated
{
"refresh_token": "example"
}

OK

Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}

Bad Request

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Unauthorized

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}

Internal Server Error

Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{
"error": "example",
"success": true
}