Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🐛 Fix invalid-session route
Luke Vella12651abd0c0d
diff --git a/apps/web/src/app/api/auth/invalid-session/route.ts b/apps/web/src/app/api/auth/invalid-session/route.tsindex 9fcdb322e..8db431cd7 100644--- a/apps/web/src/app/api/auth/invalid-session/route.ts+++ b/apps/web/src/app/api/auth/invalid-session/route.ts@@ -1,7 +1,12 @@+import type { NextRequest } from "next/server";+import { NextResponse } from "next/server";+import { signOut } from "@/next-auth";-export async function GET() {- return await signOut({- redirectTo: "/",+export async function GET(req: NextRequest) {+ await signOut({+ redirect: false,});++ return NextResponse.redirect(new URL("/login", req.url));}