Add a MFA verification
Add a MFA verification to the user, a logto-verification-id in header is required for checking sensitive permissions. Only WebAuthn is supported for now, a new identifier verification record is required for the webauthn registration verification.
Body
Required
-
type
string("WebAuthn") Required The type of the MFA verification.
-
newIdentifierVerificationRecordId
string Required The identifier verification record ID for the new WebAuthn registration verification.
-
name
string The name of the MFA verification, if not provided, the name will be generated from user agent.
POST
/api/my-account/mfa-verifications
curl \
--request POST 'https://[tenant_id].logto.app/api/my-account/mfa-verifications' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"type":"string","newIdentifierVerificationRecordId":"string","name":"string"}'
Request examples
{
"type": "string",
"newIdentifierVerificationRecordId": "string",
"name": "string"
}