{
  "type": "https://errors.swepay.com.br/native-guard/step-up-invalid-challenge",
  "service": "native-guard",
  "slug": "step-up-invalid-challenge",
  "httpStatus": 400,
  "title": "Invalid Step-Up Challenge",
  "summary": "The step-up challenge is invalid, expired, or was already used.",
  "description": "Returned by `POST /identity/v1/realms/{realm}/stepup/biometric` when the\n`challengeId` cannot be used to complete a login. The response is the same\nwhether the challenge is unknown, expired or already used — it deliberately\ndoes not say which.\n\nA challenge is single-use and is consumed by the first completion attempt,\n**including an attempt that fails** with another step-up error. It is also\nrejected when the client or session that raised it is no longer active.\n",
  "commonCauses": [
    "The challenge expired — more than `expiresInSeconds` passed since it was issued.",
    "The challenge was already attempted, successfully or not.",
    "The `challengeId` is wrong, or was sent to a different realm than the one that issued it.",
    "The client or the session that raised the challenge was disabled or ended in the meantime."
  ],
  "clientAction": "Not retryable with the same `challengeId`. Start the login again to receive\na new challenge\n([Step-Up Authentication Required](/native-guard/step-up-challenge-required)),\nthen complete it once, within its lifetime.\n",
  "exampleResponse": {
    "type": "https://errors.swepay.com.br/native-guard/step-up-invalid-challenge",
    "title": "Invalid Step-Up Challenge",
    "status": 400,
    "detail": "The step-up challenge is invalid, expired, or already used.",
    "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 9470 — OAuth 2.0 Step Up Authentication Challenge Protocol",
      "url": "https://www.rfc-editor.org/rfc/rfc9470"
    }
  ],
  "category": "service",
  "deprecated": false,
  "documentation": "https://errors.swepay.com.br/native-guard/step-up-invalid-challenge"
}