-
Notifications
You must be signed in to change notification settings - Fork 353
Description
Why is this feature valuable to you? Does it solve a problem you're having?
The web version of the JavaScript SDK is importing the NodeJs (server) crypto module - the web-pack fallback for this is https://github.com/browserify/crypto-browserify
This results in a large bundle size for your web-app. It should be possible to replace this with the native browser crypto API's
https://developer.mozilla.org/en-US/docs/Web/API/Crypto
Also I am not sure if its safe to continue using this fallback for the future especially for something like cryptography.
Describe the solution you'd like
The SDK should detect its being used in the browser and use the https://developer.mozilla.org/en-US/docs/Web/API/Crypto
API.
Describe alternatives you've considered
None