You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
W3C's nonce spec specifies that nonces must be generated in a cryptographically secure fashion. We need to make a way to generate these in a polymorphic way to be able to generate them from node or from browser uniformly from shared/Util.ts. https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues should work great on browser, and Node has an implementation of the same method in their webcrypto library. However, you must import the node crypto library to use it in Node. Figure out a way to use this crypto.getRandomValues method or some similar method. Maybe use the NormalModuleReplacementPlugin to import crypto appropriately.
W3C's nonce spec specifies that nonces must be generated in a cryptographically secure fashion. We need to make a way to generate these in a polymorphic way to be able to generate them from node or from browser uniformly from
shared/Util.ts
. https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues should work great on browser, and Node has an implementation of the same method in their webcrypto library. However, you must import the nodecrypto
library to use it in Node. Figure out a way to use thiscrypto.getRandomValues
method or some similar method. Maybe use the NormalModuleReplacementPlugin to importcrypto
appropriately.Depends on #63
The text was updated successfully, but these errors were encountered: