constantoine / totp-rs

RFC-compliant TOTP implementation with ease of use as a goal and additionnal QoL features.
https://crates.io/crates/totp-rs
MIT License
180 stars 23 forks source link

Support generate token from the current time #17

Closed wyhaya closed 2 years ago

constantoine commented 2 years ago

Hi! Thanks for contributing! Would you be willing to also add a check_current method for consistance?

wyhaya commented 2 years ago

Hi! Thanks for contributing! Would you be willing to also add a check_current method for consistance?

Submitted!

constantoine commented 2 years ago

Thanks a lot! I'll merge, add in some tests and update the README/examples

I'll publish it under version "1.3" in a few minutes. I'll comment here to update you :)

constantoine commented 2 years ago

Published! Changes should reflect on crates.io and docs.rs in a few minutes.

Thanks again for your contribution! Current system time is a sane default-case, and most people will probably wish to switch to those functions.

Have a great day!