User Authentication api made with nodejs and express framework. Has features like token based user validation and resetting password.
Clone the project
git clone https://github.com/samip779/authentication-system.git
Go to the project directory
cd authentication-system
Install dependencies
npm install
Start the server
npm run start
To run this project, you will need to add the following environment variables to your .env file
JWT_SECRET
Mail trap is used for fake email testing for development phase of the api. You can signup and us it HERE. You will get followings credentials after signing up which should be stored in your .env file.
MAILTRAP_USERNAME
MAILTRAP_PASSWORD
MAILTRAP_HOST
MAILTRAP_PORT
POST /api/user/create
POST /api/user/signin
POST /api/user/verify-email