Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time remaining Feature Request #21

Open
Andr01dx86 opened this issue Aug 5, 2021 · 2 comments
Open

Time remaining Feature Request #21

Andr01dx86 opened this issue Aug 5, 2021 · 2 comments

Comments

@Andr01dx86
Copy link

This program is great!!! I use it to pass codes to a program I use.

Would it be possible to check how much time is left? Something like:

2fa github -time
9 (seconds left)

This way people could use this command to determine if the one time code should be pulled or wait to pull another.

@dmitshur
Copy link

dmitshur commented Aug 5, 2021

PR #11 is relevant.

@rsc
Copy link
Owner

rsc commented Aug 5, 2021

https://datatracker.ietf.org/doc/html/rfc6238#section-5.2, which suggests allowing one-time-unit old TOTPs to validate, to account for time skew and network delays. Do you know of any TOTP-consuming auth systems that don't follow this advice? I've literally never had a problem with this, but maybe I am using different systems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants