Skip to content

Commit

Permalink
[readme] Fix two-factor example userToken type
Browse files Browse the repository at this point in the history
  • Loading branch information
markbao committed Jan 24, 2016
1 parent a8d62a5 commit f782374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <img> tag
// Example:
write('<img src="' + data_url + '">');
Expand All @@ -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
Expand Down

0 comments on commit f782374

Please sign in to comment.