mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-31 00:53:37 +00:00
Fixed Having to Login to See teh Privacy Policy
This commit is contained in:
parent
5ebba23baf
commit
87979c8e13
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue