Synchronise sessions between server and client

I have a web application with nextjs and I want the user to sign up with a server action. But when I do this the user remains disconnected after logging in.
Could someone explain to me how to connect a user on the server side?
Was this page helpful?