{
  "type": "https://errors.swepay.com.br/native-guard/step-up-totp-not-enrolled",
  "service": "native-guard",
  "slug": "step-up-totp-not-enrolled",
  "httpStatus": 403,
  "title": "TOTP Not Enrolled",
  "summary": "The user behind the access token has no active TOTP enrollment to step up with.",
  "description": "Returned by `POST /identity/v1/realms/{realm}/stepup/totp` when the access\ntoken and its session are valid, but the user has no active TOTP enrollment —\nthere is no second factor to verify the code against. An enrollment that was\nstarted but never confirmed does not count.\n\nThe same response is returned when the user account behind the token is\ndisabled or no longer exists. The TOTP code was not checked and no attempt\nwas counted.\n",
  "commonCauses": [
    "The user never enrolled an authenticator app.",
    "The enrollment was started but not confirmed with a first code.",
    "Two-factor authentication was disabled for the user after it had been set up.",
    "The user account was disabled or removed after the access token was issued."
  ],
  "clientAction": "Not retryable as sent — no code can succeed until the user has an active\nenrollment. Guide the user through TOTP setup with the same access token:\n\n1. `POST /identity/v1/realms/{realm}/protocol/openid-connect/2fa/setup` to\n   generate the secret for the authenticator app.\n2. `POST /identity/v1/realms/{realm}/protocol/openid-connect/2fa/verify-setup`\n   with the first code from the app to activate it.\n\nThen repeat the step-up with a code from the app.\n",
  "exampleResponse": {
    "type": "https://errors.swepay.com.br/native-guard/step-up-totp-not-enrolled",
    "title": "TOTP Not Enrolled",
    "status": 403,
    "detail": "The user has not enrolled a TOTP secret.",
    "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 6238 — TOTP",
      "url": "https://www.rfc-editor.org/rfc/rfc6238"
    }
  ],
  "category": "service",
  "deprecated": false,
  "documentation": "https://errors.swepay.com.br/native-guard/step-up-totp-not-enrolled"
}