Not using middleware in nextjs
I don't want to move the user to different routes based on if they are logged in or now. Are there any reasons for me to still keep the middleware? I am using convex auth
2 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
For sure, you can remove server side auth entirely. Check here: https://labs.convex.dev/auth/setup#set-up-the-react-provider
Select Next.js, and you’ll see options for App Router with SSA and App Router without SSA. Remove the SSA stuff from your app and then follow the without SSA guide.
Set Up Convex Auth - Convex Auth
Authentication library for your Convex backend