Created
December 23, 2015 23:19
-
-
Save markbao/79256f82cc4aa11254ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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