Skip to content
Torii docs

Confirm MFA enrollment during an enforced sign-in

POST
/_torii/auth/mfa/enroll/confirm
curl --request POST \
--url 'https://your-app.torii.so/_torii/auth/mfa/enroll/confirm?_is_native=false' \
--header 'Content-Type: application/json' \
--data '{ "challengeToken": "example", "code": "example" }'

Confirms the first code for an enrollment started by /mfa/enroll: activates the factor, signs the user in, and returns single-use recovery codes (shown once).

Origin
string
Host
string
_is_native
boolean
Media type application/json
object
challengeToken
required
string
code
required
string
Example generated
{
"challengeToken": "example",
"code": "example"
}

OK

Media type application/json
object
Example generated
{}