Hello everyone, in my code i want to protetct the root layout on my next js project, only authorized/registered users should be able to login and access the children(pages) in root layout..
NB: apprwrite project id and end point are already created.
Summary
Developers are seeking help to protect the root layout for user authentication in a Next.js project using Appwrite. They want only authorized users to access the layout and its children pages. A possible solution suggested is to follow the guide at https://appwrite.io/docs/tutorials/nextjs-ssr-auth/step-1. Another alternative would be to check the logout button rendering and apply a similar approach to the entire page. An easier option suggested is to use https://appwrite.io/docs/quick-starts/nextjs, although potential latency issues are mentioned.