A very simple dashboard to understand authentication with NextAuth.js.
- adding a user signup API route and sending signup requests from the frontend.
- hashing passwords with Bcryptjs.
- working with a custom auth provider in NextAuth.js to log in users.
- managing active sessions and handling logouts.
- protecting routes with client-side and server-side page guards.
- protecting API routes.
- enabling users to change their passwords.
Based on Next.js & React - The Complete Guide by Maximilian Schwarzmüller (2021).