Closed xtremevision closed 1 year ago
Ok, I think I got it now. Most likely the secret and setting the period were off. However, I have another problem. How do I make sure I a new totp code is generated with precisely 30s, on user request?
Ignore my question. I just realized I misunderstood compleletly the usage of this library.
Hi,
Indeed TOTP is not suitable for this use case. You should use HOTP instead or directly a random string with an expiration date you will remove once used.
Version(s) affected
11.2.0
Description
I don't think it's a bug, more than likely I am doing something wrong, but for the life of me I don't see what is wrong. Whenever I verify an otp code, a couple of seconds after it was generated and received by email, it verifies as false. I don't understand why it's not working.
How to reproduce
TOTP method
Verification always returns false.
Possible Solution
No response
Additional Context
Using CentOS 7, CodeIgniter 4, Apache, PHP 8.1 and Postgresql 9.5.