Skip to content

[SDK] Provider is client side but uses node functionalities #74

@Kzoeps

Description

@Kzoeps

Which area(s) of Hypercerts are affected? (leave empty if unsure)

SDK

To Reproduce

  1. Setup the SDK using @hypercerts/sdk-react
  2. Wrap the root component with the Provider from createAtProtoReact
  3. Provider needs to be client side but if client side can't access the private keys.

Describe the Bug

  1. If we wrap the provider to be a client side component, node functionality thats used in the sdk is not available.
  2. If we make the provider to be a server side component then react/next complains that it should be a client component

Expected Behavior

The Provider should work while being a client side component.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions