workos / authkit-remix

Authentication and session helpers for using WorkOS & AuthKit with Remix
MIT License
22 stars 7 forks source link

Non-Node.js runtimes compatibility #3

Open sergiodxa opened 5 months ago

sergiodxa commented 5 months ago

Remix apps can be run on Node.js, Deno, Cloudflare, Bun, or any JS runtime in general. I saw the package always use @remix-run/node so it can't be used on any other JS runtime.

Is the core of WorkOS not compatible with other JS runtimes? If it could run on other runtimes, you could import from @remix-run/server-runtime package as this is a runtime agnostic package, and then adjust the code to support other runtimes requirements, e.g. on CF you can't use process.env so any env variable should be received as an argument of a function.

Dhravya commented 2 months ago

Hey @PaulAsjes, what's the status on this?