Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (16 sloc) 848 Bytes

node-token-based-authentication

Node Token-based Authentication REST APIs tutorial with examples - learn how to build a secure user authentication CRUD APIs using JSON web token.

Written Article

Build Secure (JWT) Token Based Authentication API with Node

Authentication REST APIs

  • 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

Start Node Server

  • Run npm install to install required packages
  • Open terminal run nodemon
  • Open other terminal run mongod

Open API URL on http://localhost:4000/api

You can’t perform that action at this time.