This adds a basic profile-aware command to clear the auth token cache, so you don't have to try and find the cache.json file, find the right line, and delete it in order to force e.g. OAuth2 re-auth. Now it's a simple:
$ restish api clear-auth-cache $NAME`
Pass --rsh-profile=$PROFILE or -p $PROFILE to clear the cache for a specific profile instead of default.
This adds a basic profile-aware command to clear the auth token cache, so you don't have to try and find the
cache.json
file, find the right line, and delete it in order to force e.g. OAuth2 re-auth. Now it's a simple:Pass
--rsh-profile=$PROFILE
or-p $PROFILE
to clear the cache for a specific profile instead ofdefault
.