From f1b31567e27853fb7d59ba71d4b5d64d56527861 Mon Sep 17 00:00:00 2001 From: James Date: Thu, 31 Aug 2023 18:44:04 +0100 Subject: [PATCH] fix: next auth not trusting domain --- utils/auth/next-auth.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/auth/next-auth.ts b/utils/auth/next-auth.ts index 01e855f..4233efb 100644 --- a/utils/auth/next-auth.ts +++ b/utils/auth/next-auth.ts @@ -34,6 +34,7 @@ const providers = deriveAuthProviders(); const adapter = deriveDatabaseAdapter(); const { handlers: nextAuthHandlers, auth } = NextAuth({ + trustHost: true, useSecureCookies: process.env.NODE_ENV === 'production', session: { strategy: 'jwt',