From f78237482f97b3f49f3f3a236adf10e8f42b3976 Mon Sep 17 00:00:00 2001 From: Mark Bao Date: Sun, 24 Jan 2016 13:28:58 -0500 Subject: [PATCH] [readme] Fix two-factor example userToken type --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c747fd8..c505ad4 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ var QRCode = require('qrcode'); // Get the data URL of the authenticator URL QRCode.toDataURL(secret.otpauth_url, function(err, data_url) { console.log(data_url); - + // Display this data URL to the user in an tag // Example: write(''); @@ -92,7 +92,7 @@ After the user scans the QR code, ask the user to enter in the token that they s ```js // Let's say the user says that the token they have is 132890 -userToken = 132890; +userToken = '132890'; ``` ```js // Option A: use verify() to check the token against the secret