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

Cannot intercept 302 redirects and read response headers #284

Open
atomic-tang opened this issue Jan 5, 2022 · 0 comments
Open

Cannot intercept 302 redirects and read response headers #284

atomic-tang opened this issue Jan 5, 2022 · 0 comments

Comments

@atomic-tang
Copy link

I am using apisauce in a react native project and I need to intercept 302 redirects to implement the OAuth2 PKCE flow. I've tried setting the maxRedirects option to 0 but it is still redirecting and I am getting a status code of 200 when logging the response on console. Is there a way to read response headers before the redirect happens?

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

No branches or pull requests

1 participant