Skip to main content

createTOTPQRCodeUrl

@quik/mfa


@quik/mfa / createTOTPQRCodeUrl

Function: createTOTPQRCodeUrl()

createTOTPQRCodeUrl(otpauthUrl, options?): string

Defined in: mfa/src/utils/totp.ts:96

Builds a QR code image data URL from an otpauth URI.

Parameters​

otpauthUrl​

string

Enrollment URI encoded into the QR code.

options?​

QR rendering options.

quietZoneModules?​

number

sizePixels?​

number

Returns​

string