From e1433d3bb7083b73d7646a2551cb5c3e39c02b7d Mon Sep 17 00:00:00 2001 From: Romain bogdanovic Date: Sat, 28 Mar 2026 20:52:15 +0100 Subject: [PATCH] fix: trustHost true for nextauth behind reverse proxy --- src/auth.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/auth.ts b/src/auth.ts index 10e6f10e..2e9366aa 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -4,6 +4,7 @@ import Resend from "next-auth/providers/resend"; import { db } from "@/lib/db"; export const { handlers, auth, signIn, signOut } = NextAuth({ + trustHost: true, adapter: PrismaAdapter(db), providers: [ Resend({