2fa icon indicating copy to clipboard operation
2fa copied to clipboard

2fa: add remaining seconds when showing totp code

Open ntin90 opened this issue 6 years ago • 4 comments

Add remaining time when showing totp code, so that user can know if there is still enough time for him to input

2fa 123456 | 17 second(s) left | aws 987654 | 17 second(s) left | vpn

2fa -clip aws 123456 - 10 second(s) left

ntin90 avatar Dec 21 '18 03:12 ntin90

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

:memo: Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

googlebot avatar Dec 21 '18 03:12 googlebot

I signed it!

ntin90 avatar Dec 21 '18 03:12 ntin90

CLAs look good, thanks!

googlebot avatar Dec 21 '18 03:12 googlebot

Is it possible to include an operator/switch? IE:

2fa github -time 28

This way people could use the output directly into the client software?

Andr01dx86 avatar Aug 06 '21 18:08 Andr01dx86