POST /auth/mfa/challenge
Send MFA code for setup/verification
Send MFA code for setup/verification
/auth/mfa/challengeRequest body
NestAuthSendMfaCodeRequestDto
| Field | Type | Required | Description |
|---|---|---|---|
method | object | required | MFA delivery method Example: email |
Examples
Example
{
"method": "email"
}Responses
200
NestAuthMfaCodeSentResponseDto
| Field | Type | Required | Description |
|---|---|---|---|
message | string | required | Response message Example: MFA code sent successfully |
Example response
{
"message": "MFA code sent successfully"
}Try it
curl -X POST 'https://api.example.com/auth/mfa/challenge' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-d '{"method":"email"}'