Protection of Root Layout for Dashboard in nextjs for user authentication by using Appwrite
- 1
- Auth
- Web
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.
I think you can follow this
Help for the procedures/steps to be done to achieve this
Thank you let me go through it
only problem in my experience was the latency since the server is not near my location so the route redirection would majorly suck
or you can just opt for https://appwrite.io/docs/quick-starts/nextjs
check how the logout button is rendered, you can do that but for the entire page instead
Recommended threads
- is `account.get()` safe to be used in th...
I want to user's `id` for authentication. However, a while ago I was told in this server not to use `account.get()` and instead add user preferences for that us...
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...