From 87979c8e13147f935cf19e5a8f3415c5203bd4b8 Mon Sep 17 00:00:00 2001 From: Ahmad <103906421+ahmadk953@users.noreply.github.com> Date: Wed, 21 Feb 2024 17:33:57 -0500 Subject: [PATCH] Fixed Having to Login to See teh Privacy Policy --- middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware.ts b/middleware.ts index f1e9777..5f58757 100644 --- a/middleware.ts +++ b/middleware.ts @@ -2,7 +2,7 @@ import { authMiddleware, redirectToSignIn } from '@clerk/nextjs'; import { NextResponse } from 'next/server'; export default authMiddleware({ - publicRoutes: ['/', '/api/webhook'], + publicRoutes: ['/', '/api/webhook', '/privacy-policy', '/terms-of-service'], afterAuth(auth, req) { if (auth.userId && auth.isPublicRoute) { let path = '/select-org';