Native Guard
Replayed TOTP Code 409
The TOTP code sent to step up the session is correct but was already used.
https://errors.swepay.com.br/native-guard/step-up-totp-replayed-code What this means
Returned by POST /identity/v1/realms/{realm}/stepup/totp when the code
verifies but was already consumed by an earlier step-up of the same user. A
code is single-use on this endpoint, across all of the user's sessions in
the realm.
This request did not elevate the session and issued no token. It does not count as a failed attempt.
Common causes
- The request was sent twice, for example by a double submit or an automatic retry after a timeout.
- The first request succeeded but its response was lost, and the client resent the same code.
- The same code was used to step up another session of the same user moments earlier.
How to resolve
Not retryable with the same code. Wait for the authenticator app to show the next code — at most 30 seconds — and send that one. If the earlier request with this code succeeded, its response already carried the elevated tokens; use them instead of stepping up again.
Example response
{
"type": "https://errors.swepay.com.br/native-guard/step-up-totp-replayed-code",
"title": "Replayed TOTP Code",
"status": 409,
"detail": "This TOTP code has already been used.",
"traceId": "Root=1-00000000-000000000000000000000000;Parent=0000000000000000;Sampled=0"
} References
Machine-readable: /native-guard/step-up-totp-replayed-code.json