go-otp
go-otp copied to clipboard
The `Period` for TOTP is very limited being uint8
Given the value is in seconds, uint8 can't be used to have values like 5 minutes or more. The Period
should be allowed to have higher values, even few days if the situation demands.
I am open to accept pull-requests if they are well tested and if possible don't break the API ;)
It seems pretty much impossible to do this without at least breaking the part of the API where otp.TOTP and otp.HOTP use uint8s, unless I'm missing something.
I'm also kinda curious what the use case is where you'd want the code to only chance once every few days.