1007 B
1007 B
ToDo
- infinite scroll
- build & deploy via docker
Authentication
Authentication consists of the following parts:
next-authboilerplatemiddleware.ts= hooks-upnext-authinto the page processing pipeline - user session is checked before any page is renderedauth.ts= defines how the authentication is done, and how session is checked (used by middleware)/app/api/[...nextauth]/route.ts= defines route which shows an authentication form
Source:
- How to Implement Google Authentication in a Next.js App Using NextAuth
- Next Js 14 Authentication on Edge Runtime
Multi-User Support
Each location record is marked with a user ID.
All the actions user withUser to fetch user ID, which is then used in all the DB operations.