server-side auth in Supabase with Next.js — how to handle session
I have followed the following guide for setting up server side auth with Supabase and NextJS (with App Router):
supabase auth signout automatic redirect to sign-out page
How to change config os supabase auth signout to avoid automatic redirect to sign-out page?
Auth with supabase in nextjs
I’m trying to learn next js, but I don’t understand how this works:
I have my navbar component where I call this function: