var qr = require('qr-js');

var authURL = 'otpauth://totp/SecretKey?secret=' + encodeURIComponent(secret.base32);
console.log(qr.toDataURL(authURL))