cURL
curl --request GET \ --url https://{subdomain}.auth.{region}.nhost.run/v1/mfa/totp/generate \ --header 'Authorization: Bearer <token>'
{ "imageUrl": "data:image/png;base64,iVBORw0KGg...", "totpSecret": "ABCDEFGHIJK23456" }
Generate a Time-based One-Time Password (TOTP) secret for setting up multi-factor authentication
Bearer authentication with JWT access token. Used to authenticate requests to protected endpoints.
TOTP secret successfully generated
Response containing TOTP setup information for MFA
URL to QR code image for scanning with an authenticator app
"data:image/png;base64,iVBORw0KGg..."
TOTP secret key for manual setup with an authenticator app
"ABCDEFGHIJK23456"
Was this page helpful?