How to get user or session info on server side?

Hello,
I am trying to build auth system base on the supabase auth but I have a lot of problems
after I signed in successeflly I checked my cookies and got two cookies "sb-refresh-token & sb-access-token" but they are assined to my supabase gotrue server url not my project url eg: localhost
so that when i tryied to access a server side page and pass the req & res to createServerSupabaseClient();
then tryied to fetch session or user info it is always return null when I come back to check my cookies It disappers when I search more about it I found out that happend because of the cookies is assiend to the gotrue url not my app url
So how to solve this hole problem and able to check my user session or info in server?
image.png
Was this page helpful?