Generate (or regenerate) the current user's recovery backup codes — shown once.
POST
End-user session operationId: generate_backup_codes/v1/auth/mfa/backup-codes Authorization
Called from the browser with the publishable application id (x-application-id); the access token lives in memory.
Responses
200 New backup codes
{
"data": {
"codes": [
"string"
]
},
"error": {
"code": "string",
"message": "string"
},
"meta": {
"timestamp": "string"
},
"success": false
} 401 No end-user session
Request
curl -X POST "http://localhost:8080/v1/auth/mfa/backup-codes" \Try it
live requestPOST
http://localhost:8080/v1/auth/mfa/backup-codes