Express, Mongodb (mongoose), JWT, and nodemailer all combined were used to make this Auth API.
In the root directory fill the file config.env.template
and rename it config.env
:
// Install dependencies
npm install
//Run Server
npm start
Method | |
---|---|
POST | /api/auth/login |
POST | /api/auth/refresh |
POST | /api/auth/register |
POST | /api/auth/forgot-password |
PUT | /api/auth/reset-password/:resetToken |
POST | /api/auth/logout |