{"id":26179536,"url":"https://github.com/bezkoder/jwt-refresh-token-node-js","last_synced_at":"2025-04-14T22:35:10.958Z","repository":{"id":40438042,"uuid":"371245959","full_name":"bezkoder/jwt-refresh-token-node-js","owner":"bezkoder","description":"JWT Refresh Token implementation in Node.js example with Express, Sequelize and MySQL","archived":false,"fork":false,"pushed_at":"2023-06-04T23:42:22.000Z","size":61,"stargazers_count":74,"open_issues_count":2,"forks_count":29,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-28T10:47:37.779Z","etag":null,"topics":["authentication","authorization","jwt","node","node-js","refresh-token","sequelize","token-based-authentication"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bezkoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-27T04:27:46.000Z","updated_at":"2025-02-27T16:12:30.000Z","dependencies_parsed_at":"2022-08-09T20:21:07.294Z","dependency_job_id":null,"html_url":"https://github.com/bezkoder/jwt-refresh-token-node-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fjwt-refresh-token-node-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fjwt-refresh-token-node-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fjwt-refresh-token-node-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fjwt-refresh-token-node-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bezkoder","download_url":"https://codeload.github.com/bezkoder/jwt-refresh-token-node-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248974021,"owners_count":21192068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","authorization","jwt","node","node-js","refresh-token","sequelize","token-based-authentication"],"created_at":"2025-03-11T21:50:20.369Z","updated_at":"2025-04-14T22:35:05.945Z","avatar_url":"https://github.com/bezkoder.png","language":"JavaScript","readme":"# Node.js JWT Refresh Token with MySQL example\nJWT 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.\n\nFor instruction, please visit:\n\u003e [Node.js JWT Refresh Token example](https://bezkoder.com/jwt-refresh-token-node-js/)\n\nThe code in this post bases on previous article that you need to read first:\n\u003e [Node.js JWT Authentication \u0026 Authorization example](https://bezkoder.com/node-js-jwt-authentication-mysql/)\n\n## User Registration, User Login and Authorization process.\n\nThe diagram shows flow of how we implement User Registration, User Login and Authorization process.\n\n![jwt-token-authentication-node-js-example-flow](jwt-token-authentication-node-js-example-flow.png)\n\nAnd this is for Refresh Token:\n\n![jwt-refresh-token-node-js-example-flow](jwt-refresh-token-node-js-example-flow.png)\n\n## More Practice:\n\u003e [Build Node.js Rest APIs with Express, Sequelize \u0026 MySQL](https://bezkoder.com/node-js-express-sequelize-mysql/)\n\n\u003e [Server side Pagination in Node.js with Sequelize and MySQL](https://bezkoder.com/node-js-sequelize-pagination-mysql/)\n\n\u003e [Node.js Express File Upload Rest API example](https://bezkoder.com/node-js-express-file-upload/)\n\n\u003e [Node.js Express File Upload with Google Cloud Storage example](https://bezkoder.com/google-cloud-storage-nodejs-upload-file/)\n\nAssociations:\n\u003e [Sequelize Associations: One-to-Many Relationship example](https://bezkoder.com/sequelize-associate-one-to-many/)\n\n\u003e [Sequelize Associations: Many-to-Many Relationship example](https://bezkoder.com/sequelize-associate-many-to-many/)\n\nDeployment:\n\u003e [Deploying/Hosting Node.js app on Heroku with MySQL database](https://bezkoder.com/deploy-node-js-app-heroku-cleardb-mysql/)\n\nIntegration on same Server/Port:\n\u003e [Integrate Angular 8 with Node.js Express](https://bezkoder.com/integrate-angular-8-node-js/)\n\n\u003e [Integrate Angular 10 with Node.js Express](https://bezkoder.com/integrate-angular-10-node-js/)\n\n\u003e [Integrate React with Node.js Express](https://bezkoder.com/integrate-react-express-same-server-port/)\n\n## Project setup\n```\nnpm install\n```\n\n### Run\n```\nnode server.js\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbezkoder%2Fjwt-refresh-token-node-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbezkoder%2Fjwt-refresh-token-node-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbezkoder%2Fjwt-refresh-token-node-js/lists"}