go-otp icon indicating copy to clipboard operation
go-otp copied to clipboard

The `Period` for TOTP is very limited being uint8

Open designgrill opened this issue 9 years ago • 2 comments

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.

designgrill avatar Feb 06 '16 18:02 designgrill

I am open to accept pull-requests if they are well tested and if possible don't break the API ;)

hgfischer avatar Sep 21 '17 18:09 hgfischer

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.

akerl avatar Oct 03 '18 02:10 akerl