-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runtime error for web 5.0 #320
Comments
What happens when you run it in a real debugger? Note this requires a browser that has the full crypto library which Brave may not have enabled. |
I advise testing in another browser. I am closing this for now. If this issue still exists please comment. |
I'm facing also this issue in my deployment using latest 5.0.2 version. The issue is present only when the app is built, not in development mode. |
@henry2man which browser are you using? |
Stable Chrome 96.0.4664.55 w/ MacOS Monterrey on M1 The issue is also present in Safari |
@juliansteenbakker Do you want me to do a specific test with my setup to see if we can have a minimum case from which to test? Any example or test of the plugin? |
After some searching it seems that webCrypto only works when the site is running HTTPS or localhost. How are you running your build? Source: ipfs/js-ipfs#964 (comment) |
That's the key. For now I'm developing so I'm using localhost && HTTP only. I think this should be documented in README.md, isn't it? Thank you very much. |
Yes indeed, thanks for the verification ! |
I have added the note in the readme doc. |
~/Documents/flutter_secure_storage/flutter_secure_storage/example$ flutter build web --web-renderer html --release
~/Documents/flutter_secure_storage/flutter_secure_storage/example$ sudo cp -r ./build/web/* ~/Documents/www/
I got in the browser console
Uncaught TypeError: Cannot read property 'generateKey' of undefined
The text was updated successfully, but these errors were encountered: