ory / network

Ory runs a global end-to-end security infrastructure for humans, robots, and servers. We build and use open source software.
Apache License 2.0
81 stars 6 forks source link

Latest Ory Javascript SDK does not work with Cloudflare Workers #379

Open BrandonNoad opened 8 months ago

BrandonNoad commented 8 months ago

Preflight checklist

Ory Network Project

https://strange-joliot-n3x27vsd04.projects.oryapis.com

Describe your problem

Recent versions of @ory/client are using axios v1.x

https://github.com/ory/sdk/issues/289#issuecomment-1916527928

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

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

https://github.com/axios/axios/releases/tag/v0.28.0

aeneasr commented 8 months ago

👍 https://github.com/ory/sdk/pull/341