Skip to content

Fix : correct parameter in middleware.ts#2

Open
Shobhini wants to merge 1 commit intohiteshchoudhary:mainfrom
Shobhini:main
Open

Fix : correct parameter in middleware.ts#2
Shobhini wants to merge 1 commit intohiteshchoudhary:mainfrom
Shobhini:main

Conversation

@Shobhini
Copy link

Description

Fixed incorrect parameter usage in the middleware.ts file.
Fixes #1

Changes Made

  • Corrected the parameter structure in the clerkMiddleware function
  • Ensures proper authentication flow for public and protected routes

Technical Details

The middleware now correctly handles:

  • Public route authentication
  • Protected route authentication
  • User redirection logic

Impact

This fix ensures proper authentication handling throughout the application and prevents potential authentication-related issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong parameter is passed in isPublicRoute() middleware.ts

1 participant