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

Authorizations

Authorization
string
header
required

JSON Web Token to authorize requests.

Response

200
application/json
Success
imageUrl
string
required

Data URL of the QR code

totpSecret
string
required

TOTP secret