© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
21 replies
Bart Westenenk

how to make proper protected routes with Supabase in next JS

Hi all,

I wanted to make some code that checks server side if the user is allowed to access the route.
I don’t really have a clue how to realize this as there is, as far as I could find, no way to get the user data based on the server side. Only client side.
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

Next JS Protected Routes
SupabaseSSupabase / help-and-questions
4y ago
How to use supabase-js next?
SupabaseSSupabase / help-and-questions
4y ago
Supabase with Next.js 13
SupabaseSSupabase / help-and-questions
4y ago
Supabase Auth with Next.js
SupabaseSSupabase / help-and-questions
4y ago