Skip to content

Node.js + MongoDB: User Authentication & Authorization with JWT

Notifications You must be signed in to change notification settings

bezkoder/node-js-jwt-auth-mongodb

Repository files navigation

Node.js MongoDB – User Authentication & Authorization example with JWT & Mongoose

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

For more detail, please visit:

Node.js + MongoDB: User Authentication & Authorization with JWT

You may need to implement Refresh Token:

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

Node.js JWT Refresh Token with MongoDB example

Working with Front-end:

Vue

Angular 8 / Angular 10 / Angular 11 / Angular 12 / Angular 13

React / React + Redux

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

Associations:

MongoDB One-to-One relationship tutorial with Mongoose examples

MongoDB One-to-Many Relationship tutorial with Mongoose examples

MongoDB Many-to-Many Relationship with Mongoose examples

Fullstack:

Vue.js + Node.js + Express + MongoDB example

Angular 8 + Node.js + Express + MongoDB example

Angular 10 + Node.js + Express + MongoDB example

Angular 11 + Node.js + Express + MongoDB example

Angular 12 + Node.js + Express + MongoDB example

Angular 13 + Node.js + Express + MongoDB example

Angular 14 + Node.js + Express + MongoDB example

Angular 15 + Node.js + Express + MongoDB example

Angular 16 + Node.js + Express + MongoDB example

React + Node.js + Express + MongoDB example

Integration on same Server/Port:

Integrate Vue with Node.js Express

Integrate Angular with Node.js Express

Integrate React with Node.js Express

Project setup

npm install

Run

node server.js