Fix: set trustHost to true for production auth
This commit is contained in:
1 parent
de95412a6c
commit
7cc88287b8
1 file changed
+1
-1
+1
-1
@@ -54,7 +54,7 @@ async function verify2faCode(userId: number, code: string): Promise<boolean> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const { handlers, signOut, auth } = NextAuth({
|
export const { handlers, signOut, auth } = NextAuth({
|
||||||
trustHost: env.NODE_ENV !== "production",
|
trustHost: true,
|
||||||
secret: env.AUTH_SECRET,
|
secret: env.AUTH_SECRET,
|
||||||
session: { strategy: "jwt", maxAge: 24 * 60 * 60 },
|
session: { strategy: "jwt", maxAge: 24 * 60 * 60 },
|
||||||
pages: { signIn: "/login", error: "/login" },
|
pages: { signIn: "/login", error: "/login" },
|
||||||
|
|||||||
Reference in new issue
Block a user