Pistis
API referenceM C P

Revoke an access or refresh token (RFC 7009)

POST
/oauth/revoke

Always 200. A refresh token takes its whole family with it.

Request Body

application/x-www-form-urlencoded
  1. body
[key: string]?any

Response Body

Revoked, or nothing to revoke

Example Request
curl -X POST 'http://127.0.0.1:7777/oauth/revoke' \  -H 'Content-Type: application/x-www-form-urlencoded' \  -d 'token=x'
Example Response200
Empty