Open Cprime50 opened 2 months ago
I can not reproduce in my environment and all the authenticator apps below returns as success, "OTP verified successfully!"
In my experience, the time zone and/or NTP are not set correctly in such cases.
Hi, @Cprime50. I reproduced your code and it worked for me.
Go version (Latest)
go version go1.23.0 linux/amd64
I don't think this issue has anything to do with Go's version.
Package version
github.com/pquerna/otp v1.4.0
I am using this library to generate a QR code that I connect to Google Authenticator. However, the OTP generated by Google Authenticator doesn't get validated by the library.
version of package
go version
code:
to reproduce: Run the code provided above. Scan the generated QR code using Google Authenticator. Enter the OTP code displayed in Google Authenticator into the terminal.