https://github.com/bezkoder/jwt-refresh-token-node-js
JWT Refresh Token implementation in Node.js example with Express, Sequelize and MySQL
https://github.com/bezkoder/jwt-refresh-token-node-js
authentication authorization jwt node node-js refresh-token sequelize token-based-authentication
Last synced: 9 months ago
JSON representation
JWT Refresh Token implementation in Node.js example with Express, Sequelize and MySQL
- Host: GitHub
- URL: https://github.com/bezkoder/jwt-refresh-token-node-js
- Owner: bezkoder
- Created: 2021-05-27T04:27:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-06-04T23:42:22.000Z (over 2 years ago)
- Last Synced: 2025-03-28T10:47:37.779Z (10 months ago)
- Topics: authentication, authorization, jwt, node, node-js, refresh-token, sequelize, token-based-authentication
- Language: JavaScript
- Homepage:
- Size: 59.6 KB
- Stars: 74
- Watchers: 5
- Forks: 29
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Node.js JWT Refresh Token with MySQL example
JWT Refresh Token Implementation with Node.js Express and MySQL. You can know how to expire the JWT, then renew the Access Token with Refresh Token.
For instruction, please visit:
> [Node.js JWT Refresh Token example](https://bezkoder.com/jwt-refresh-token-node-js/)
The code in this post bases on previous article that you need to read first:
> [Node.js JWT Authentication & Authorization example](https://bezkoder.com/node-js-jwt-authentication-mysql/)
## User Registration, User Login and Authorization process.
The diagram shows flow of how we implement User Registration, User Login and Authorization process.

And this is for Refresh Token:

## More Practice:
> [Build Node.js Rest APIs with Express, Sequelize & MySQL](https://bezkoder.com/node-js-express-sequelize-mysql/)
> [Server side Pagination in Node.js with Sequelize and MySQL](https://bezkoder.com/node-js-sequelize-pagination-mysql/)
> [Node.js Express File Upload Rest API example](https://bezkoder.com/node-js-express-file-upload/)
> [Node.js Express File Upload with Google Cloud Storage example](https://bezkoder.com/google-cloud-storage-nodejs-upload-file/)
Associations:
> [Sequelize Associations: One-to-Many Relationship example](https://bezkoder.com/sequelize-associate-one-to-many/)
> [Sequelize Associations: Many-to-Many Relationship example](https://bezkoder.com/sequelize-associate-many-to-many/)
Deployment:
> [Deploying/Hosting Node.js app on Heroku with MySQL database](https://bezkoder.com/deploy-node-js-app-heroku-cleardb-mysql/)
Integration on same Server/Port:
> [Integrate Angular 8 with Node.js Express](https://bezkoder.com/integrate-angular-8-node-js/)
> [Integrate Angular 10 with Node.js Express](https://bezkoder.com/integrate-angular-10-node-js/)
> [Integrate React with Node.js Express](https://bezkoder.com/integrate-react-express-same-server-port/)
## Project setup
```
npm install
```
### Run
```
node server.js
```