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

[session] Show token expiry time in a more Human friendly format #437

Open
viklund opened this issue Aug 27, 2024 · 0 comments
Open

[session] Show token expiry time in a more Human friendly format #437

viklund opened this issue Aug 27, 2024 · 0 comments

Comments

@viklund
Copy link
Member

viklund commented Aug 27, 2024

As a user
I don't want to do complex math to figure out when my token expires
So I can spend my precious, precious brain cycles on more important things.

Description

Currently token expiry is shown using HHH:MM:SS format, which is complicated to understand, especially when number of hours is more than 48, and also seconds is too fine grained.

Suggestion, following output:

  • If more than a day: "in X days at 12:05"
  • If less than a day "in 12 hours and 5 minutes (at 23:04)"
  • If less than two hours "WARNING, token expires in only 1 hour and 43 minutes"

Demo

Demo the expiry time using three different tokens (expected demo time, 2 minutes).

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

1 participant