Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 97a1282

Browse files
authored
fix: webcrypto polyfill (#100)
1 parent 2100f25 commit 97a1282

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

bun.lockb

400 Bytes
Binary file not shown.

packages/authjs-nuxt/src/runtime/lib/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if (!globalThis.crypto) {
1111
console.log("Polyfilling crypto...")
1212
import("node:crypto").then((crypto) => {
1313
Object.defineProperty(globalThis, "crypto", {
14-
value: crypto,
14+
value: crypto.webcrypto,
1515
writable: false,
1616
configurable: true
1717
})

0 commit comments

Comments
 (0)