Fix login CSP and auth host trust

This commit is contained in:
openhands
2026-07-04 20:04:44 +02:00
parent 83d1483ecd
commit c9d951aa86
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ async function verify2faCode(userId: number, code: string): Promise<boolean> {
}
export const { handlers, signIn, signOut, auth } = NextAuth({
trustHost: process.env.NODE_ENV === "development",
trustHost: true,
session: { strategy: "jwt", maxAge: 24 * 60 * 60 },
pages: { signIn: "/login" },
providers: [