From 0eccb35172115f644266952c0eff052da7a80576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Tue, 21 Apr 2026 19:32:21 +0400 Subject: [PATCH] Add trustHost for next auth --- app/api/auth/[...nextauth]/route.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/auth/[...nextauth]/route.js b/app/api/auth/[...nextauth]/route.js index 462d455..c44b9d9 100644 --- a/app/api/auth/[...nextauth]/route.js +++ b/app/api/auth/[...nextauth]/route.js @@ -42,7 +42,8 @@ export const { handlers, auth } = NextAuth({ }) ], session: { - strategy: "jwt" + strategy: "jwt", + trustHost: true }, secret: process.env.NEXT_PUBLIC_JWT_SECRET, callbacks: {