getSession() return null after login
Hello I am building auth system in my app and i wanted to access getSession() on server I used the code snippet in the docs (https://supabase.com/docs/guides/auth/auth-helpers/nextjs#server-side-rendering-ssr)
But when the user login and tried to access the protected route it the session return null how to solve this problem?
But when the user login and tried to access the protected route it the session return null how to solve this problem?

Supabase Documentation
Authentication helpers for Next.js API routes, middleware, and SSR.
