GET
/
mfa
/
totp
/
generate
curl --request GET \
  --url https://local.auth.nhost.run/v1/mfa/totp/generate \
  --header 'Authorization: Bearer <token>'
{
  "imageUrl": "<string>",
  "totpSecret": "<string>"
}

Authorizations

Authorization
string
headerrequired

JSON Web Token to authorize requests.

Response

200 - application/json
imageUrl
string
required

Data URL of the QR code

totpSecret
string
required

TOTP secret