You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Mac M1/M2, otp validation fails for dates in any year before 1970. This can be associated to this bug golang/go#62725 as uint64 cannot represent negative values and converting floats to uint64s is implementation defined; which is related to the float to uint64 conversion in totp.ValidateCustom:
On Mac M1/M2, otp validation fails for dates in any year before 1970. This can be associated to this bug golang/go#62725 as uint64 cannot represent negative values and converting floats to uint64s is implementation defined; which is related to the float to uint64 conversion in
totp.ValidateCustom
:otp/totp/totp.go
Line 84 in bd63651
Example 1
Passes for any year from 1970
Output
$ go run ./totp 2023/09/21 12:12:13 true
Example 2
Fails for any year before 1970
Output
$ go run ./totp 2023/09/21 12:14:58 false
The text was updated successfully, but these errors were encountered: