Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation not up to date (node-qrcode) #88

Closed
ghost opened this issue Jun 8, 2017 · 0 comments
Closed

Documentation not up to date (node-qrcode) #88

ghost opened this issue Jun 8, 2017 · 0 comments
Assignees

Comments

@ghost
Copy link

ghost commented Jun 8, 2017

// Use the node-qrcode package
// npm install --save node-qrcode
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 + '">');
});

The node-qrcode package is now installed with npm install --save qrcode, node-qrcode points to a different package now.

https://github.com/soldair/node-qrcode

@railsstudent railsstudent self-assigned this Jun 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant