feat: Introduce a dedicated logout page for consistent token and session invalidation across the application.

This commit is contained in:
pradeepkumar
2026-02-18 00:50:38 +05:30
parent cb76eb6488
commit 3d2171e0bb
3 changed files with 34 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ import { NextResponse } from "next/server";
const authRoutes = ["/login", "/signup", "/forgot-password", "/reset-password", "/verify-email"];
// Public routes - accessible to everyone (logged in or not)
const publicRoutes = ["/", "/contact", "/about", "/faq", "/user/dashboard", "/user/profiles", "/user/profile"];
const publicRoutes = ["/", "/contact", "/about", "/faq", "/logout", "/user/dashboard", "/user/profiles", "/user/profile"];
export default auth((req) => {
const { nextUrl } = req;