{
  "type": "https://errors.swepay.com.br/native-guard/biometric-recovery-purpose-mismatch",
  "service": "native-guard",
  "slug": "biometric-recovery-purpose-mismatch",
  "httpStatus": 400,
  "title": "Assertion Purpose Mismatch",
  "summary": "The biometric assertion was not issued for account recovery.",
  "description": "Returned by `POST /identity/v1/realms/{realm}/recovery/biometric` when the\nassertion is authentic but was issued for a purpose other than `Recovery`.\nAn assertion only authorizes the operation it was requested for, so one\nobtained for a step-up challenge cannot be used to recover an account. No\nrecovery token is issued.\n",
  "commonCauses": [
    "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."
  ],
  "clientAction": "Not retryable with the same assertion. Request a new biometric verification\nwith purpose `Recovery` and submit that assertion. Each attempt counts toward\nthe recovery rate limit — see [Too Many Requests](/common/too-many-requests).\n",
  "exampleResponse": {
    "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"
  },
  "relatedDocs": [
    {
      "label": "RFC 9457 — Problem Details",
      "url": "https://www.rfc-editor.org/rfc/rfc9457"
    }
  ],
  "category": "service",
  "deprecated": false,
  "documentation": "https://errors.swepay.com.br/native-guard/biometric-recovery-purpose-mismatch"
}