From 5fb2085195637e0155886b4e1ccee0d1704dc0e2 Mon Sep 17 00:00:00 2001 From: Luke Vella Date: Fri, 7 Feb 2025 12:21:18 +0700 Subject: [PATCH] Update public routes --- apps/web/src/next-auth.config.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/web/src/next-auth.config.ts b/apps/web/src/next-auth.config.ts index 7855d64e1c7..ec9ede4bc31 100644 --- a/apps/web/src/next-auth.config.ts +++ b/apps/web/src/next-auth.config.ts @@ -4,13 +4,7 @@ import type { NextAuthConfig } from "next-auth"; import { env } from "@/env"; import { isQuickCreateEnabled } from "@/features/quick-create/constants"; -const publicRoutes = [ - "/login", - "/register", - "/invite/", - "/poll/", - "/auth/login", -]; +const publicRoutes = ["/login", "/register", "/invite/", "/poll/", "/auth"]; if (isQuickCreateEnabled) { publicRoutes.push("/quick-create", "/new");