New issue
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
Cannot reuse the secret #51
Comments
agree, we should let user handle this kind of problem, but what we gonna do ? (start /v2 ?), this already like this from beginning |
V2 sounds like a good idea. Practically I noticed that most of the time you will create a new secret anyway. An easy fix would be decode the secret but might not be backward compatible. |
I'm confused about the gap here? Generate(....) returns a *Key, which you can call .Secret() on? |
Closing for now - no clear defect or ask on what to change - please let me know if there is something that helps your use case. |
in https://github.com/pquerna/otp/blob/master/totp/totp.go#L183 the secret should not be re-encoded since that is the final seed we will store in the DB. To be able to reuse the seed to generate a new key we need to add it as a final secret.
The text was updated successfully, but these errors were encountered: