{
  "type": "https://errors.swepay.com.br/native-guard/token-revocation-failed",
  "service": "native-guard",
  "slug": "token-revocation-failed",
  "httpStatus": 500,
  "title": "Token Revocation Failed",
  "summary": "The user was not deleted because their active tokens could not be revoked.",
  "description": "Returned by `DELETE /admin/v1/realms/{realmId}/users/{userId}`. Native Guard\nrevokes all of a user's active tokens **before** deleting the user. If that\nrevocation fails, the deletion is aborted: the user still exists and their\nsessions were not terminated.\n\nThe request itself is well-formed — the failure is on the service side, so\nthe status is `500`. Identify this case by `type`: unlike a generic internal\nerror, it tells you the deletion did not happen and can be retried.\n",
  "commonCauses": [
    "A transient failure in the token store while the user's tokens were being revoked.",
    "The revocation was interrupted part-way, so some tokens may already be revoked while others are still active."
  ],
  "clientAction": "The request is safe to retry: send the same `DELETE` again, with backoff\nbetween attempts. Until it succeeds, treat the user as still existing and\ntheir tokens as possibly still valid. If the error persists, contact Swepay\nsupport and include the `traceId`.\n\n`error` and `errorDescription` are deprecated compatibility members of the\nAdmin API; key your handling off `type`.\n",
  "exampleResponse": {
    "type": "https://errors.swepay.com.br/native-guard/token-revocation-failed",
    "title": "Token Revocation Failed",
    "status": 500,
    "detail": "Token revocation failed",
    "traceId": "Root=1-00000000-000000000000000000000000;Parent=0000000000000000;Sampled=0",
    "error": "token_revocation_failed",
    "errorDescription": "Token revocation failed"
  },
  "relatedDocs": [
    {
      "label": "RFC 9457 — Problem Details",
      "url": "https://www.rfc-editor.org/rfc/rfc9457"
    }
  ],
  "category": "service",
  "deprecated": false,
  "documentation": "https://errors.swepay.com.br/native-guard/token-revocation-failed"
}