Skip to content

Commit

Permalink
changed auth
Browse files Browse the repository at this point in the history
  • Loading branch information
chuma-beep committed Jan 16, 2025
1 parent 95a8d6f commit 091b23f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion components/AuthButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ export default function AuthButton() {
</DropdownMenuContent>
</DropdownMenu>
) : (

<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="ghost" size="icon">
Expand Down
2 changes: 1 addition & 1 deletion utils/supabase/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export async function updateSession(request: NextRequest) {
const { data: { user } } = await supabase.auth.getUser();

// Define public routes that don't require authentication
const publicRoutes = ['/login', '/signup', '/forgot-password'];
const publicRoutes = ['/', '/community' ,'login', '/signup', '/forgot-password'];
const isPublicRoute = publicRoutes.some(route =>
request.nextUrl.pathname.startsWith(route)
);
Expand Down

0 comments on commit 091b23f

Please sign in to comment.