swepayError Catalog

Native Guard

Invalid Step-Up Challenge 400

The step-up challenge is invalid, expired, or was already used.

type https://errors.swepay.com.br/native-guard/step-up-invalid-challenge

What this means

Returned by POST /identity/v1/realms/{realm}/stepup/biometric when the challengeId cannot be used to complete a login. The response is the same whether the challenge is unknown, expired or already used — it deliberately does not say which.

A challenge is single-use and is consumed by the first completion attempt, including an attempt that fails with another step-up error. It is also rejected when the client or session that raised it is no longer active.

Common causes

  • 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.

How to resolve

Not retryable with the same challengeId. Start the login again to receive a new challenge (Step-Up Authentication Required), then complete it once, within its lifetime.

Example response

HTTP 400 · application/problem+json
{
  "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"
}

References

Machine-readable: /native-guard/step-up-invalid-challenge.json