POST
/
user
/
mfa
curl --request POST \
  --url https://local.auth.nhost.run/v1/user/mfa \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "activeMfaType": "totp",
  "code": "<string>"
}'
"<string>"

Authorizations

Authorization
string
headerrequired

JSON Web Token to authorize requests.

Body

application/json
activeMfaType
enum<string>

Multi-factor authentication type. A null value deactivates MFA

Available options:
totp
code
string
required

MFA activation code

Response

200 - application/json

The response is of type string.