Skip to content
Back

Authentication Flow Trouble

  • 0
  • Self Hosted
  • Auth
Karl
29 Jan, 2025, 06:47

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.

TL;DR
Developers are facing trouble checking if a user is logged in on a Server Side Rendered component due to localstorage limitations. One possible solution is to check the session status stored on appwrite instead of relying on localstorage.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more