Im building a next js app and I authenticate via magic link which stores an active session in localstorage and on appwrite. So far so good.
How do i check now in a Server Side Rendered component if the user is logged in? Since localstorage can't be accessed on the server.