Open
Description
What's happening?
When using react-native-quick-crypto together with the jose library in a React Native app, calling exportJWK() throws the following error:
TypeError: Key must be one of type CryptoKey, KeyObject, or Uint8Array. Received an instance of CryptoKey
Reproducible Code
const { publicKey, privateKey } = await generateKeyPair('ES256', { extractable: true });
const publicKeyJwk = await exportJWK(publicKey);
Relevant log output
TypeError: Key must be one of type CryptoKey, KeyObject, or Uint8Array. Received an instance of CryptoKey
Device
iPhone 16
QuickCrypto Version
0.7.13
Can you reproduce this issue in the QuickCrypto Example app?
I didn't try (
Additional information
- I am using Expo
- I have read the Troubleshooting Guide
- I agree to follow this project's Code of Conduct
- I searched for similar issues in this repository and found none.
Metadata
Metadata
Assignees
Labels
No labels