Skip to content

Instantly share code, notes, and snippets.

@markbao
Created December 23, 2015 23:19
Show Gist options
  • Save markbao/79256f82cc4aa11254ef to your computer and use it in GitHub Desktop.
Save markbao/79256f82cc4aa11254ef to your computer and use it in GitHub Desktop.
var qr = require('qr-js');
var authURL = 'otpauth://totp/SecretKey?secret=' + encodeURIComponent(secret.base32);
console.log(qr.toDataURL(authURL))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment