Skip to content

Node crypto import breaks edge-like runtimes #1403

@erquhart

Description

@erquhart

The CryptoProvider is used across the codebase to support node and non-node crypto implementations, but a recent addition added a node crypto import directly to the audit log code: https://github.com/workos/workos-node/pull/1383/files#diff-5fae55a532fb5c015cc0b00796e4646f5f0eb5f8fb999e81604d3a7253043004R1

It's using randomUUID, which isn't currently implemented in the crypto providers, so the implementation would need to be added to fix. This currently breaks the Convex runtime and likely others that cannot import the "crypto" package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions