xlzd / gotp

Golang OTP(One-Time Password) Library.
MIT License
468 stars 67 forks source link

Added TOTP expiration time stamp return #2

Closed mergenchik closed 5 years ago

mergenchik commented 5 years ago

Some times I need expiration of TOTP, in order to hide OTP when it is not valid when displaying to user.

xlzd commented 5 years ago

LGTM

xlzd commented 5 years ago

btw other int should inplaced by int64, I'll do it later. 😲

mergenchik commented 5 years ago

I used int64 in purpose, since Time.Unix() also returns int64, and in future to avoid Year 2038 Problem