From dc146e2360bab2708dafc6788e8830504f9aa5d6 Mon Sep 17 00:00:00 2001 From: Markeljan Date: Sat, 11 Oct 2025 11:17:26 -0400 Subject: [PATCH] Fix SIWE auth configuration --- app/api/auth/[...nextauth]/route.ts | 2 +- auth.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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",