We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
When generating a secret via const secret = authenticator.generateSecret()
secret
const secret = authenticator.generateSecret()
the length of secret varies on every run.
To Reproduce Steps to reproduce the behavior: 1.
const secret = authenticator.generateSecret() console.log(secret); console.log(secret.length);
secret.length
Expected behavior
I expect the secret generated of have a consistent length of 16
Details (please provide any relevant information):
Additional context
the website ALWAYS generates a 16 character length string:
https://github.com/yeojz/otplib/blob/master/website/src/components/SecretStore.jsx#L19-L21
The text was updated successfully, but these errors were encountered:
Thanks for the report. Will look into it.
At a glance, it looks like it is highly likely due to the thirty-two implementation.
Sorry, something went wrong.
Thanks for the report. Found the area of concern and will be addressed in #202
Successfully merging a pull request may close this issue.
Describe the bug
When generating a
secret
viaconst secret = authenticator.generateSecret()
the length of
secret
varies on every run.To Reproduce
Steps to reproduce the behavior:
1.
secret.length
will be different for every runExpected behavior
I expect the secret generated of have a consistent length of 16
Details (please provide any relevant information):
Additional context
the website ALWAYS generates a 16 character length string:
https://github.com/yeojz/otplib/blob/master/website/src/components/SecretStore.jsx#L19-L21
The text was updated successfully, but these errors were encountered: