We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c8b068 commit c82741aCopy full SHA for c82741a
test/server/webauthn/wasm_exec.js
@@ -144,7 +144,12 @@
144
}
145
146
if (!globalThis.crypto) {
147
- throw new Error("globalThis.crypto is not available, polyfill required (crypto.getRandomValues only)");
+ try {
148
+ globalThis.crypto = require("crypto");
149
+ } catch (e) {
150
+ console.error(e);
151
+ throw new Error("globalThis.crypto is not available, polyfill required (crypto.getRandomValues only)");
152
+ }
153
154
155
if (!globalThis.performance) {
0 commit comments