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.
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.