Open devrojan opened 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
.
same issue
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
Hi,
Just a minor issue, I think the issuer option in generateSecret method was not included in latest release..