speakeasyjs / speakeasy

**NOT MAINTAINED** Two-factor authentication for Node.js. One-time passcode generator (HOTP/TOTP) with support for Google Authenticator.
MIT License
2.7k stars 228 forks source link

generateSecret function can create otpauth URL with issuer parameter #69

Closed railsstudent closed 7 years ago

railsstudent commented 7 years ago

speakeasy.generateSecret( { name: 'totp@example.com', issuer: 'some issuer' }); can create an totp otpauth URL with issuer

otpauth://totp/totp%40example.com?secret=&issuer=some%20issuer