This is a basic user authentication using json web token, if you are planning to create a custom authentication don't waste your time, instead clone this and be creative!
If you would like to download the code and try it for yourself:
- Clone the repo:
git clone https://github.com/kacak9229/basic-user-auth.git
- Install packages:
npm install
- Change out the database configuration in config.js
- Change out auth keys in config/auth.js
- Launch:
node server.js
ornodemon server
- launch
postman
, you can get it on chrome store http://https://chrome.google.com/webstore and try out the API!