Open
Description
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
Labels
No labels