Skip to content

Commit d6c6b42

Browse files
committed
Merge pull-request #900
2 parents e82e487 + 2f43a83 commit d6c6b42

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/with-x/credential-upload.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
import { webcrypto as nodeCrypto } from "node:crypto";
2+
if (!globalThis.crypto) {
3+
// @ts-ignore
4+
globalThis.crypto = nodeCrypto as unknown as Crypto;
5+
}
6+
17
import { encryptOauth2ClientSecret } from "@turnkey/crypto";
28
import { Turnkey } from "@turnkey/sdk-server";
39
import dotenv from "dotenv";

0 commit comments

Comments
 (0)