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

Something to manually clear auth cache #405

Open
hadley opened this issue Dec 4, 2023 · 1 comment
Open

Something to manually clear auth cache #405

hadley opened this issue Dec 4, 2023 · 1 comment
Labels
feature a feature request or enhancement oauth 🔒

Comments

@hadley
Copy link
Member

hadley commented Dec 4, 2023

Occasionally useful to clear session cache manually, like when you revoke the a token from the GitHub API.

Should also consider if need someway to register a custom "you should reauth now" handler (i.e. to customise resp_is_invalid_oauth_token). GitHub doesn't appear to follow the spec, so I bet other APIs don't either.

@jennybc
Copy link
Member

jennybc commented Dec 4, 2023

Does httr2 have a oauth sitrep function? Along the lines of gargle_oauth_sitrep(). That has paid off over there, both during development and for solving user mysteries. I'm sure it would look different for httr2, but maybe something in the same spirit would be useful.

https://gargle.r-lib.org/reference/gargle_oauth_sitrep.html

https://gargle.r-lib.org/articles/troubleshooting.html#gargle_oauth_sitrep

@hadley hadley changed the title Something to manually clear cache Something to manually clear auth cache Feb 27, 2024
@hadley hadley added feature a feature request or enhancement oauth 🔒 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement oauth 🔒
Projects
None yet
Development

No branches or pull requests

2 participants