NBISweden / sda-cli

User command line interface for the SDA
GNU Affero General Public License v3.0
5 stars 1 forks source link

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

Open viklund opened 2 months ago

viklund commented 2 months ago

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:

Demo

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