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

The issuer option is not included in latest realease #133

Open devrojan opened 3 years ago

devrojan commented 3 years ago

Hi,

Just a minor issue, I think the issuer option in generateSecret method was not included in latest release..

amorenopbsc commented 3 years ago

I am using 2.0.0 and I can confirm even though I am sending issuer parameter, the function generateSecret is NOT including the parameter in otpauth_url.

yariksav commented 3 years ago

same issue

fenichelar commented 1 year ago

generateSecret does not accept issuer as an input.

Instead, use the otpauthURL function and set label to ${issuer}:${name} and issuer to ${issuer}.

Note that you should not use generateSecret with name set to ${issuer}:${name} because it will only put the issuer in the label, not both the label and issuer parameter as recommended.

Source: https://github.com/google/google-authenticator/wiki/Key-Uri-Format