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.
2 parents e82e487 + 2f43a83 commit d6c6b42Copy full SHA for d6c6b42
examples/with-x/credential-upload.tsx
@@ -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
+
7
import { encryptOauth2ClientSecret } from "@turnkey/crypto";
8
import { Turnkey } from "@turnkey/sdk-server";
9
import dotenv from "dotenv";
0 commit comments