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

Cookie jar is empty after making GET request in React Native #636

Closed
maximilian opened this issue Dec 7, 2022 · 1 comment
Closed

Cookie jar is empty after making GET request in React Native #636

maximilian opened this issue Dec 7, 2022 · 1 comment

Comments

@maximilian
Copy link

Hi,

I've been having issues for a few hours now trying to get this package to work with React Native. The following example code works without errors, it simply does not return any cookies in the cookie jar: https://github.com/3846masa/axios-cookiejar-support/blob/main/examples/basic.cjs

Am I missing something? I did see tough-cookie got a PR approved for RN compatibility as well.

@3846masa
Copy link
Owner

axios-cookiejar-support uses httpAgent to read and write cookies.
Since httpAgent exists only in Node.js, it does not work in React Native.

There are no plans to support React Native in the future.

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

2 participants