jaxxstorm / aws-sso-creds

Get AWS SSO temporary creds from an SSO profile
MIT License
189 stars 24 forks source link

The expiry time printed in the console is incorrect #9

Closed pooley182 closed 2 years ago

pooley182 commented 2 years ago

after running aws-sso-creds get the output on the CLI says.

These credentials will expire at: Tue Oct 31 10:30:00 GMT 54733

First of all that's weird because Oct 31st is a Monday.

But if I look at the json stored in ~/.aws/sso/cache I can see that the expiry time is much shorter. "expiresAt": "2022-10-06T18:14:26Z" only around 5 or 6 hours in the future, not the 25 days that the get command told me it was.

balkhibayeva commented 2 years ago

Hello, I'm experiencing same issue. After running the command I get

These credentials will expire at: Tue Aug 17 18:23:20 PDT 54737

However in ~/.aws/sso/cache it says "expiresAt": "2022-10-07T23:29:24Z" which is 15 hours. How can I modify the duration to be only 7-8 hours?

jaxxstorm commented 2 years ago

Thanks for the report, I'll see what's causing this