Skip to content

JWT Refresh Token implementation in Node.js example with Express, MongoDB

Notifications You must be signed in to change notification settings

kabirul/jwt-refresh-token-node-js-mongodb

Repository files navigation

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

About

JWT Refresh Token implementation in Node.js example with Express, MongoDB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published