Skip to content
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

Difference between Authy and generated code. #62

Closed
aminecmi opened this issue Aug 30, 2022 · 1 comment
Closed

Difference between Authy and generated code. #62

aminecmi opened this issue Aug 30, 2022 · 1 comment

Comments

@aminecmi
Copy link

Hi,

I'm trying to build my own OTP app using your library, and I'm using my current app (Authy) to check if the codes are the same.

Parsing the OTPAuth URI gives a different code from what Authy returns. I even tried building the TOTP from scratch using the URI content, and trying the different algorithms, but I never had the same code.

What would be the issue here (if it is an issue) ?

Thanks.

@aminecmi
Copy link
Author

For anyone interested, the OTPAuth URI generated contained a duration of 10s, yet Authy was using 30s periods.

Changing the period to 30s fixed my issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant