Confirm and activate the authenticator-app factor
curl --request POST \
--url https://pria.praxislxp.com/api/user/me/totp/confirm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "123456"
}
'{
"success": true,
"backupCodes": [
"a1b2c-d3e4f"
]
}User Profile
Confirm and activate the authenticator-app factor
Verifies the 6-digit code against the pending secret. On success:
promotes the pending secret to the active encrypted secret, sets
mfaMethod='totp' and mfaEnabled=true, and generates 10 single-use
backup codes returned once in backupCodes (never retrievable
again — the user must save them). A wrong code returns 400 and does NOT
enable.
POST
/
api
/
user
/
me
/
totp
/
confirm
Confirm and activate the authenticator-app factor
curl --request POST \
--url https://pria.praxislxp.com/api/user/me/totp/confirm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"code": "123456"
}
'{
"success": true,
"backupCodes": [
"a1b2c-d3e4f"
]
}Authorizations
JWT token passed in authorization header
Body
application/json
6-digit code from the authenticator app.
Example:
"123456"
Was this page helpful?
⌘I