Node Token-based Authentication REST APIs tutorial with examples - learn how to build a secure user authentication CRUD APIs using JSON web token.
Build Secure (JWT) Token Based Authentication API with Node
- GET (users list) /api
- POST (sign-in) /api/signin
- POST (sign-up) /api/register-user
- GET (user profile) /api/user-profile/id
- PUT (update user) /api/update-user/id
- DELETE (delete user) /api/delete-user/id
- Run
npm install
to install required packages - Open terminal run
nodemon
- Open other terminal run
mongod
Open API URL on http://localhost:4000/api