common-fate / granted

The easiest way to access your cloud.
https://granted.dev
MIT License
957 stars 90 forks source link

Output-sso-expiry-in-JSON #550

Closed shwethaumashanker closed 7 months ago

shwethaumashanker commented 8 months ago

What changed?

granted sso-tokens expiry --json returns a JSON output

Why?

It is easier to programmatically check if the token is expired

How did you test it?

Output of dgranted sso-tokens expiry. Also checked that you can run commands like dgranted sso-tokens expiry | jq -r '[.[] | select(.is_expired == true)]'

Potential risks

Is patch release candidate?

Link to relevant docs PRs