Browser support
Igerly opened this issue · 1 comments
Igerly commented
Hello!
I'm trying to use the library in a react app, but getting an error trying to generate basic keys:
crypto__WEBPACK_IMPORTED_MODULE_1___default.a.generateKeyPairSync is not a function
const crypto = new Crypto(); await crypto.subtle.generateKey( { name: 'ECDH', namedCurve: 'P-256', true, ['deriveBits'] );
Should the webcrypto library actually work in the browser, or have I missed something in the docs?