Skip to content

Support for Cloudflare Workers/Vercel Edge Runtime #72

Description

@samyap4

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status
    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions