BastiaanJansen/otp-java

Difference between Authy and generated code.

aminecmi opened this issue · 1 comments

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.

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.