r/Supabase•
ashkanahmadi

What's the best way of using Supabase auth in a Nextjs website? What's the best way for tracking user session in various components?

tips

Hi

I'm in the process of learning Next and Supabase together.

I already have a sign in form to log in with no issue. However, I'm wondering.

What is the best way of keeping user session persistant across the website? Is the best option to use useContent in the root component? Any examples would be appreciated.

Thanks

Posted Jun 13, 2025, 10:33 PM UTC

32
Loading comments…