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

Support for Cloudflare Workers/Vercel Edge Runtime #72

Open
samyap4 opened this issue Feb 27, 2024 · 0 comments
Open

Support for Cloudflare Workers/Vercel Edge Runtime #72

samyap4 opened this issue Feb 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@samyap4
Copy link

samyap4 commented Feb 27, 2024

Deploying Functions on the Cloudflare Workers/Vercel Edge Runtime to interact with the FGA SDK

Currently the SDK depends on the Node.js http module. This prevents us from leveraging the SDK in these newer javascript runtimes.

Describe the ideal solution

A clear and concise description of what you want to happen.

Alternatives and current workarounds

We would have to manually craft the requests to the FGA APIs to interact with the service.

Additional context

When calling an SDK function such as:

const result = await fgaClient.listObjects({ user, relation, type, });

we receive the following exception being thrown:

[Error: The edge runtime does not support Node.js 'http' module.

@rhamzeh rhamzeh added this to the Javascript SDK Modernization milestone Jul 17, 2024
@rhamzeh rhamzeh added the enhancement New feature or request label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants