MFA status
GET
/_torii/mfa/status
const url = 'https://your-app.torii.so/_torii/mfa/status';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://your-app.torii.so/_torii/mfa/statusWhether the current user has a confirmed TOTP factor and how many recovery codes remain.
Responses
Section titled “ Responses ”OK
Media type application/json
object
enabled
required
boolean
recoveryCodesRemaining
required
integer format: int32
Example generated
{ "enabled": true, "recoveryCodesRemaining": 1}