Skip to content

Cannot intercept 302 redirects and read response headers #284

Open
@atomic-tang

Description

@atomic-tang

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions