Recommendations regarding SSR authentication
Unanswered
Cape lion posted this in #help-forum
Cape lionOP
I'm implementing authentication in a Next.js App Router app using SSR (Server-Side Rendering) with Appwrite, following this pattern:
https://github.com/divanov11/Nextjs-Appwrite-Auth-SSR
In this setup, session cookies are validated on the server, and the authenticated user is fetched in server components or layouts — similar to how traditional backend frameworks handle auth (e.g., PHP, Laravel). However I have not yet seen this pattern in combination with client side authentication. Should I just stick to rendering every page in the server in order to leverage this way of auth or have a mix of old client side authentication in combination with this?
https://github.com/divanov11/Nextjs-Appwrite-Auth-SSR
In this setup, session cookies are validated on the server, and the authenticated user is fetched in server components or layouts — similar to how traditional backend frameworks handle auth (e.g., PHP, Laravel). However I have not yet seen this pattern in combination with client side authentication. Should I just stick to rendering every page in the server in order to leverage this way of auth or have a mix of old client side authentication in combination with this?