Skip to content

Commit 2007b9c

Browse files
Replaced deprecated reference to privateKeyAccount in login.ts (#5607)
Signed-off-by: Captain Unknown <79987654+CaptainUnknown@users.noreply.github.com> Co-authored-by: greg <gregfromstl@gmail.com>
1 parent 9d8ecce commit 2007b9c

File tree

1 file changed

+2
-2
lines changed
  • apps/portal/src/app/connect/auth/frameworks/next

1 file changed

+2
-2
lines changed

apps/portal/src/app/connect/auth/frameworks/next/page.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Create an `actions` directory with a `login.ts` file with the following:
226226
```tsx
227227
"use server";
228228
import { VerifyLoginPayloadParams, createAuth } from "thirdweb/auth";
229-
import { privateKeyAccount } from "thirdweb/wallets";
229+
import { privateKeyToAccount } from "thirdweb/wallets";
230230
import { client } from "@/lib/client";
231231
import { cookies } from "next/headers";
232232

@@ -238,7 +238,7 @@ if (!privateKey) {
238238

239239
const thirdwebAuth = createAuth({
240240
domain: process.env.NEXT_PUBLIC_THIRDWEB_AUTH_DOMAIN || "",
241-
adminAccount: privateKeyAccount({ client, privateKey }),
241+
adminAccount: privateKeyToAccount({ client, privateKey }),
242242
client: client,
243243
});
244244

0 commit comments

Comments
 (0)