NextJs authentication application with regiser, login, email verification, and reset password through email.
npm install
orpnpm install
- copy the content of the
.env.example
and create a new.env
file and fill your variables - run prisma commands to create the database
npx prisma db push
orpnpm dlx prisma push
[X] initialize a new next project [X] add db connection using prisma [X] create register, login, send email and reset password forms [X] add auth.js to the application [X] make simple signin work with database [X] complete registration flow with database [X] add encryption to password [X] send email verification link [X] send reset password link [X] wire evrything up