Skip to content

Commit

Permalink
don't ask
Browse files Browse the repository at this point in the history
  • Loading branch information
BerndSchuller committed Jun 20, 2024
1 parent 226c0dd commit 5406215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyunicore/cli/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def show_token_details(self, token: str):
_p += "=" * (-len(_p) % 4) # padding
payload = json.loads(b64decode(_p))
print(f"Subject: {payload['sub']}")
print(f"Lifetime (s): {payload['exp']-payload['iat']}")
print(f"Lifetime (s): {payload['exp'] - payload['iat']}")
print(f"Issued by: {payload['iss']}")
print(f"Valid for: {payload.get('aud', '<unlimited>')}")
print(f"Renewable: {payload.get('renewable', 'no')}")

0 comments on commit 5406215

Please sign in to comment.