Skip to content

Expose CryptoKey class #18

Open
Open
@mjeanroy

Description

@mjeanroy

Hi,

Problem

We are using the library to polyfill the web crypto API in a react-native environment, and it seems the CryptoKey interface is not exposed.

To give more details, we are using it with jose:

  • When used in a non node environment, jose expects the polyfill to emulate the presence of required globals.
  • Problem: since version 4.8.0, the jose library expect the CryptoKey interface to be exposed in the global namespace.

This is especially due to this check in the jose library, and it seems there is no plan to change it in the short term (see here).

Question

We fixed it on our side (by exposing a CryptoKey class in the global namespace).
Would you be open to reviewing a PR fixing this specific issue?

Thanks!

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