From bd44aba46910b7925f2b607f6132d7f5c6b6d321 Mon Sep 17 00:00:00 2001 From: Harsh Vakharia Date: Thu, 15 Mar 2018 00:20:51 +0530 Subject: [PATCH] Use base32 for otpauth_url Fixes https://github.com/speakeasyjs/speakeasy/issues/99 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 });