If I have an access token cached, but it is invalid due to me logging out of my session I get this error (whether I use the the --cache-access-token flag or not)
Error: fetching SSO web token received API response "400 Bad Request", error: "invalid_grant", description: "The 'subject_token' either expired or the session associated with it was terminated."
The only way to get around this issue that I have found is to delete the cached token
rm -rf ~/.okta/awscli-access-token.json
Would it be possible to catch this error and continue on with the login flow and/or remove the cached token?
If I have an access token cached, but it is invalid due to me logging out of my session I get this error (whether I use the the --cache-access-token flag or not)
The only way to get around this issue that I have found is to delete the cached token
Would it be possible to catch this error and continue on with the login flow and/or remove the cached token?