/node-js-jwt-auth

Node.js Demo for Token Based Authentication (JWT) with MySQL database

Primary LanguageJavaScript

Node.js – JWT Authentication & Authorization example with JSONWebToken & Sequelize

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 JWT Authentication & Authorization example

You may need to implement Refresh Token:

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

Node.js JWT Refresh Token example

Working with Front-end:

Vue

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

React / React + Redux

More Practice:

Build Node.js Rest APIs with Express, Sequelize & MySQL

Server side Pagination in Node.js with Sequelize and MySQL

Node.js Express File Upload Rest API example

Node.js Express File Upload with Google Cloud Storage example

Node.js JWT Authentication & Authorization example with MongoDB

Associations:

Sequelize Associations: One-to-Many Relationship example

Sequelize Associations: Many-to-Many Relationship example

Deployment:

Deploying/Hosting Node.js app on Heroku with MySQL database

Integration on same Server/Port:

Integrate Vue with Node.js Express

Integrate Angular 8 with Node.js Express

Integrate Angular 10 with Node.js Express

Integrate Angular 12 with Node.js Express

Integrate React with Node.js Express

Project setup

npm install

Run

node server.js