Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🔊 Log error when signing out

Luke Vella71d195a1251a
diff --git a/apps/web/src/app/api/auth/invalid-session/route.ts b/apps/web/src/app/api/auth/invalid-session/route.ts
index 3667dec65..d39bbee08 100644
--- a/apps/web/src/app/api/auth/invalid-session/route.ts
+++ b/apps/web/src/app/api/auth/invalid-session/route.ts
@@ -3,7 +3,11 @@ import { NextResponse } from "next/server";
import { signOut } from "@/lib/auth";
export async function GET(req: NextRequest) {
- await signOut();
+ try {
+ await signOut();
+ } catch (error) {
+ console.error("FAILED TO SIGN OUT", error);
+ }
return NextResponse.redirect(new URL("/login", req.url));
}