Skip to content

Fix: Resolve Clerk authentication redirect loops and middleware issues#27

Closed
yusufdupsc1 wants to merge 6 commits intosafak:mainfrom
yusufdupsc1:fix/clerk-authentication
Closed

Fix: Resolve Clerk authentication redirect loops and middleware issues#27
yusufdupsc1 wants to merge 6 commits intosafak:mainfrom
yusufdupsc1:fix/clerk-authentication

Conversation

@yusufdupsc1
Copy link
Copy Markdown

  • Add await for async auth() calls in middleware
  • Define public routes to prevent authentication loops
  • Create setup page for users without roles
  • Prevent infinite redirect loops on role-based routing
  • Update sign-in/sign-up pages with improved UI
  • Remove --turbo flag from package.json
  • Update @clerk/nextjs to latest version

Fixes #1 (if you have a GitHub issue number)

- Add await for async auth() calls in middleware
- Define public routes to prevent authentication loops
- Create setup page for users without roles
- Prevent infinite redirect loops on role-based routing
- Update sign-in/sign-up pages with improved UI
- Remove --turbo flag from package.json
- Update @clerk/nextjs to latest version

Fixes #1 (if you have a GitHub issue number)
@yusufdupsc1 yusufdupsc1 closed this by deleting the head repository Mar 1, 2026
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.

Add the .env.sample file

1 participant