nodejs-user-auth-api
An authentication api made with Nodejs, it takes care of everything about user auth flow, from registration, to login, logout of single device & all devices, profile picture, updating user account and deleting user account, validations and proper error handling, it also handles sending welcome emails when users signup, and goodbye emails when user deletes account.
The code is easily configurable, you can manouver to your need and desirable.
To use this api, simple download by cloning this this repository,
npm install.
You'd need to create a .env file to store environment variables.
PORT =
SMTP_SERVER=
SMTP_PORT=
SMTP_USER=
SMTP_PASS=
JWT=
MONGO_DB_URL=
Setup the above credentials, and you're good to go.