Protected Next.js pages and api routes
app_adminfolder is only accessible to application admins. Hence all pages which start with the route
app_adminare only accessible to app admins.
organizationroutes are all only accessible to logged in users.
- 3.Other pages are public.
- 1.To create pages only accessible to logged in users, create them within the
(authenticated-pages)/(user-pages)folders. This will make them available to all pages including app_admins.
- 2.To create pages only accessible to app_admin users, create them within the
(external-pages)are available to logged out users as well.
(login-pages)should contain all authentication related pages such as login, signup etc.
Last modified 4mo ago