© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
42 replies
b3n123

Next JS Protected Routes

I'm trying to protect routes using auth-helpers however when I login, supabase.auth.user() on the client side shows I'm logged in but I have to wait a few mins before I can access protected routes.
I'm new to web dev but I think it might be something to do with the login not being processed on the server side?
Any help would be much appreciated.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

how to make proper protected routes with Supabase in next JS
SupabaseSSupabase / help-and-questions
4y ago
Sveltekit protected routes question
SupabaseSSupabase / help-and-questions
6mo ago
Nextjs with google provider (protected routes)
SupabaseSSupabase / help-and-questions
4y ago
React/Next.js
SupabaseSSupabase / help-and-questions
3y ago