diff --git a/app/api/auth/[...nextauth]/route.ts b/app/api/auth/[...nextauth]/route.ts index a748167..095dd7f 100644 --- a/app/api/auth/[...nextauth]/route.ts +++ b/app/api/auth/[...nextauth]/route.ts @@ -1,3 +1,3 @@ -export const runtime = "edge" +export const runtime = "nodejs" export { GET, POST } from "@/auth" diff --git a/auth.ts b/auth.ts index 6a5b1a9..40570e7 100644 --- a/auth.ts +++ b/auth.ts @@ -41,6 +41,8 @@ export const { signIn, signOut, } = NextAuth({ + secret: process.env.AUTH_SECRET, + trustHost: true, providers: [ Credentials({ name: "Ethereum",