This is a Next.js authentication with mongoDB
MONGOOSE_URI = 'mongooseURL'
DOMAIN = http://localhost:3000
JWT_SECRET = 'JWTsecret'
MAILTRAP_USER = ''
MAILTRAP_PASS = ''
or rename .env.sample
to .env
signup to cloud.mongodb.com
update mongooseURL
signup to mailtrap.io
update username
password
npm run dev
Open http://localhost:3000 to see the result.
Input: username
email
password
Input: email
password
Input: email
Receive reset Email with encripted token and link to reset password valid
for 1 hour
Output: MongoId
username
email
input: password
output: update password
ENJOY THE AUTH
Website: mrtayyabriaz.netlify.app
Github: github/mrtayyabriaz