Skip to content

Latest commit

 

History

History
50 lines (29 loc) · 1.35 KB

File metadata and controls

50 lines (29 loc) · 1.35 KB

Node.js JWT Refresh Token with MongoDB example

JWT Refresh Token Implementation with Node.js Express and MongoDB. You can know how to expire the JWT, then renew the Access Token with Refresh Token.

User Registration, User Login and Authorization process.

The diagram shows flow of how we implement User Registration, User Login and Authorization process.

jwt-token-authentication-node-js-example-flow

And this is for Refresh Token:

jwt-refresh-token-node-js-example-flow

More Practice:

Node.js, Express & MongoDb: Build a CRUD Rest Api example

Server side Pagination in Node.js with MongoDB and Mongoose

Node.js Express File Upload Rest API example

Node.js + MongoDB: User Authentication & Authorization with JWT (using HTTP headers)

##Technology

cors 2.8.5

express 4.17.1

cookie-session 1.4.0

bcryptjs 2.4.3

jsonwebtoken 8.5.1

mongoose 5.13.13

uuid 8.3.2

MongoDB

Project setup

npm install

Run

node server.js