Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add command to clear auth token cache #234

Merged
merged 1 commit into from
Dec 16, 2023
Merged

Conversation

danielgtaylor
Copy link
Owner

@danielgtaylor danielgtaylor commented Dec 15, 2023

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.

Copy link

codecov bot commented Dec 15, 2023

Codecov Report

Merging #234 (97c3636) into main (21a9017) will increase coverage by 0.02%.
The diff coverage is 84.61%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #234      +/-   ##
==========================================
+ Coverage   76.84%   76.86%   +0.02%     
==========================================
  Files          26       26              
  Lines        3666     3679      +13     
==========================================
+ Hits         2817     2828      +11     
- Misses        642      643       +1     
- Partials      207      208       +1     
Files Coverage Δ
cli/apiconfig.go 83.87% <84.61%> (+0.06%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 21a9017...97c3636. Read the comment docs.

@danielgtaylor danielgtaylor merged commit d16bdd7 into main Dec 16, 2023
6 checks passed
@danielgtaylor danielgtaylor deleted the clear-auth-cache branch December 16, 2023 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants