getQRCodeUrl static method

String getQRCodeUrl({
  1. required String appName,
  2. required String secretKey,
  3. String? issuer = 'auth_otp',
})
  • appName : App name
  • secretKey : Secret key

Implementation

static String getQRCodeUrl(
    {required String appName,
    required String secretKey,
    String? issuer = 'auth_otp'}) {
  return 'https://api.qrserver.com/v1/create-qr-code/?data=otpauth://totp/$appName?secret=$secretKey&issuer=$issuer';
}