diff --git a/index.js b/index.js index 59eb6ad..5b1f883 100644 --- a/index.js +++ b/index.js @@ -530,7 +530,7 @@ exports.generateSecret = function generateSecret (options) { // add in the Google Authenticator-compatible otpauth URL if (otpauth_url) { SecretKey.otpauth_url = exports.otpauthURL({ - secret: SecretKey.ascii, + secret: SecretKey.base32, label: name, issuer: issuer });