{
  "type": "https://errors.swepay.com.br/native-guard/step-up-totp-invalid-token",
  "service": "native-guard",
  "slug": "step-up-totp-invalid-token",
  "httpStatus": 401,
  "title": "Invalid Access Token",
  "summary": "The Bearer token sent to the TOTP step-up was rejected.",
  "description": "Returned by `POST /identity/v1/realms/{realm}/stepup/totp` when a Bearer\ntoken was sent but cannot be accepted for the realm in the path: it failed\nsignature or structure validation, is expired, was revoked, does not\nidentify a user, or does not belong to that realm. It is also returned when\nthe client the token was issued to is disabled. The TOTP code was not\nchecked and no attempt was counted.\n\n`detail` carries a short reason for diagnostics. Its wording is not part of\nthe contract — do not branch on it.\n",
  "commonCauses": [
    "The access token is expired.",
    "The token was revoked, for example after a logout.",
    "The token was issued by a different realm than the one in the path, or that realm is not available.",
    "The value is not an access token (an ID or refresh token), or it is malformed."
  ],
  "clientAction": "Obtain a new access token for that realm — refresh it, or sign the user in\nagain — and repeat the step-up with it. The request is retryable only with a\nnew token; resending the same one keeps returning `401`. Never log or echo\nthe token value.\n",
  "exampleResponse": {
    "type": "https://errors.swepay.com.br/native-guard/step-up-totp-invalid-token",
    "title": "Invalid Access Token",
    "status": 401,
    "detail": "Token expired",
    "traceId": "Root=1-00000000-000000000000000000000000;Parent=0000000000000000;Sampled=0"
  },
  "relatedDocs": [
    {
      "label": "RFC 9457 — Problem Details",
      "url": "https://www.rfc-editor.org/rfc/rfc9457"
    },
    {
      "label": "RFC 6750 — Bearer Token Usage",
      "url": "https://www.rfc-editor.org/rfc/rfc6750"
    }
  ],
  "category": "service",
  "deprecated": false,
  "documentation": "https://errors.swepay.com.br/native-guard/step-up-totp-invalid-token"
}