Native Guard
Assertion Purpose Mismatch 400
The biometric assertion was not issued for account recovery.
type
https://errors.swepay.com.br/native-guard/biometric-recovery-purpose-mismatch What this means
Returned by POST /identity/v1/realms/{realm}/recovery/biometric when the
assertion is authentic but was issued for a purpose other than Recovery.
An assertion only authorizes the operation it was requested for, so one
obtained for a step-up challenge cannot be used to recover an account. No
recovery token is issued.
Common causes
- The biometric verification was requested with purpose `Challenge` (step-up) instead of `Recovery`.
- The client reuses one verification flow for both step-up and recovery without setting the purpose.
How to resolve
Not retryable with the same assertion. Request a new biometric verification
with purpose Recovery and submit that assertion. Each attempt counts toward
the recovery rate limit — see Too Many Requests.
Example response
HTTP 400 · application/problem+json
{
"type": "https://errors.swepay.com.br/native-guard/biometric-recovery-purpose-mismatch",
"title": "Assertion Purpose Mismatch",
"status": 400,
"detail": "The assertion's purpose does not authorize this operation (expected 'Recovery').",
"traceId": "Root=1-00000000-000000000000000000000000;Parent=0000000000000000;Sampled=0"
} References
Machine-readable: /native-guard/biometric-recovery-purpose-mismatch.json