Responses

  • 200 application/json

    Recovery codes

    Hide response attribute Show response attribute object
    • codes array[string]
  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data
    • error string
POST /2fa/recovery-codes
curl \
 --request POST 'http://localhost:8080/2fa/recovery-codes' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "codes": [
    "string"
  ]
}
Response examples (401)
{
  "code": 42,
  "message": "string",
  "error": "string"
}