Spaces:
Running

axeronis commited on
Commit
c8e0aa8
·
1 Parent(s): b3a9c39

fix: add legal pages to AuthContext public list

Browse files
Files changed (1) hide show
  1. frontend/contexts/AuthContext.tsx +1 -1
frontend/contexts/AuthContext.tsx CHANGED
@@ -55,7 +55,7 @@ export function AuthProvider({ children }: { children: ReactNode }) {
55
  console.log('📍 [AuthContext] Current pathname:', pathname)
56
 
57
  // Public pages don't need auth check
58
- const publicPages = ['/', '/login', '/register', '/verify-email']
59
  const isPublicPage = publicPages.some(page => pathname === page || pathname.startsWith(`${page}/`))
60
 
61
  if (isPublicPage) {
 
55
  console.log('📍 [AuthContext] Current pathname:', pathname)
56
 
57
  // Public pages don't need auth check
58
+ const publicPages = ['/', '/login', '/register', '/verify-email', '/terms', '/privacy', '/refund', '/pricing']
59
  const isPublicPage = publicPages.some(page => pathname === page || pathname.startsWith(`${page}/`))
60
 
61
  if (isPublicPage) {