Latest Ory Javascript SDK does not work with Cloudflare Workers
BrandonNoad opened this issue · 1 comments
BrandonNoad commented
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
https://strange-joliot-n3x27vsd04.projects.oryapis.com
Describe your problem
Recent versions of @ory/client are using axios v1.x
As far as I’m aware, there isn’t a fetch adapter for axios v1.x, so we won’t be able to use the newer @ory/client versions with Cloudflare workers or other similar environments (https://www.ory.sh/use-ory-with-cloudflare-workers/).
Are there plans to have a fetch-based client? Or are there any other workarounds you know of?
Describe your ideal solution
The latest version of @ory/client works with Cloudflare Workers/Pages
Workarounds or alternatives
- Keep using @ory/client < 1.5.2
- Use the REST API directly
- Try to build our own fetch-based SDK
- @ory/client reverts to axios@0.28.0
Version
Ory Network
Additional Context
axios v0.28.0 fixes a lot of security issues, which was the reason for the upgrade to v1.x
aeneasr commented