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

Authorizations

Authorization
string
header
required

JSON Web Token to authorize requests.

Body

application/json
code
string
required

MFA activation code

activeMfaType
enum<string>

Multi-factor authentication type. A null value deactivates MFA

Available options:
totp

Response

200
application/json
Success

The response is of type string.