diff --git a/README.md b/README.md index 2dabe3a..9f4d6e4 100644 --- a/README.md +++ b/README.md @@ -80,8 +80,8 @@ Next, we'll want to display a QR code to the user so they can scan in the secret Use a QR code module to generate a QR code that stores the data in `secret.otpauth_url`, and then display the QR code to the user. This is one simple way to do it, which generates a PNG data URL which you can put into an `` tag on a webpage: ```js -// Use the node-qrcode package -// npm install --save node-qrcode +// Use the qrcode package +// npm install --save qrcode var QRCode = require('qrcode'); // Get the data URL of the authenticator URL diff --git a/test/generate.js b/test/generate.js index e0e7f25..ea572df 100644 --- a/test/generate.js +++ b/test/generate.js @@ -117,7 +117,7 @@ describe('Generator tests', function () { var secret = new Buffer(answer.base32, 'ascii'); if (Buffer.isBuffer(secret)) secret = base32.encode(secret); - var google_chart_url = 'https://chart.googleapis.com/chart?chs=166x166&chld=L|0&cht=qr&chl='; + var google_chart_url = 'https://chart.googleapis.com/chart?chs=166x166&chld=L|0&cht=qr&chl='; var encodedOtpUrl = encodeURIComponent('otpauth://totp/Example%3Aalice%40google.com?secret=' + secret + '&algorithm=SHA1&digits=6&period=30'); var expect = google_chart_url + encodedOtpUrl; assert.deepEqual(