Fix: set trustHost to true for production auth
Deploy / release (push) Skipped
Deploy / deploy (push) Successful in 1m54s

This commit is contained in:
openhands committed 2026-07-26 21:15:29 +02:00
1 parent de95412a6c
commit 7cc88287b8
1 file changed
+1 -1
+1 -1
View File
@@ -54,7 +54,7 @@ async function verify2faCode(userId: number, code: string): Promise<boolean> {
}
export const { handlers, signOut, auth } = NextAuth({
trustHost: env.NODE_ENV !== "production",
trustHost: true,
secret: env.AUTH_SECRET,
session: { strategy: "jwt", maxAge: 24 * 60 * 60 },
pages: { signIn: "/login", error: "/login" },