{"id":15069835,"url":"https://github.com/bezkoder/node-js-jwt-auth","last_synced_at":"2025-04-05T11:10:45.843Z","repository":{"id":37590300,"uuid":"233866833","full_name":"bezkoder/node-js-jwt-auth","owner":"bezkoder","description":"Node.js Demo for Token Based Authentication (JWT) with MySQL database","archived":false,"fork":false,"pushed_at":"2023-06-28T03:24:53.000Z","size":63,"stargazers_count":328,"open_issues_count":9,"forks_count":252,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-03-29T10:08:04.642Z","etag":null,"topics":["authentication","authorization","jwt","jwt-authentication","node","node-js","node-js-express","node-jwt","rest-api","sequelize-associations"],"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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-14T15:02:01.000Z","updated_at":"2025-03-18T10:49:16.000Z","dependencies_parsed_at":"2024-10-13T04:00:51.696Z","dependency_job_id":"cc511f45-67df-44f5-bd7f-179b52f7c9f8","html_url":"https://github.com/bezkoder/node-js-jwt-auth","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%2Fnode-js-jwt-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fnode-js-jwt-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fnode-js-jwt-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fnode-js-jwt-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bezkoder","download_url":"https://codeload.github.com/bezkoder/node-js-jwt-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325693,"owners_count":20920714,"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","jwt-authentication","node","node-js","node-js-express","node-jwt","rest-api","sequelize-associations"],"created_at":"2024-09-25T01:45:02.251Z","updated_at":"2025-04-05T11:10:45.814Z","avatar_url":"https://github.com/bezkoder.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js – JWT Authentication \u0026 Authorization example with JSONWebToken \u0026 Sequelize\n\n## User Registration, User Login and Authorization process.\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\nFor more detail, please visit:\n\u003e [Node.js JWT Authentication \u0026 Authorization example](https://bezkoder.com/node-js-jwt-authentication-mysql/)\n\nYou may need to implement Refresh Token:\n\n![jwt-refresh-token-node-js-example-flow](jwt-refresh-token-node-js-example-flow.png)\n\n\u003e [Node.js JWT Refresh Token example](https://bezkoder.com/jwt-refresh-token-node-js/)\n\nWorking with Front-end:\n\u003e [Vue](https://www.bezkoder.com/jwt-vue-vuex-authentication/)\n\n\u003e [Angular 8](https://www.bezkoder.com/angular-jwt-authentication/) / [Angular 10](https://www.bezkoder.com/angular-10-jwt-auth/) / [Angular 11](https://www.bezkoder.com/angular-11-jwt-auth/) / [Angular 12](https://www.bezkoder.com/angular-12-jwt-auth/) / [Angular 13](https://www.bezkoder.com/angular-13-jwt-auth/)\n\n\u003e [React](https://www.bezkoder.com/react-jwt-auth/) / [React + Redux](https://www.bezkoder.com/react-redux-jwt-auth/)\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\n\u003e [Node.js JWT Authentication \u0026 Authorization example with MongoDB](https://bezkoder.com/node-js-mongodb-auth-jwt/)\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 [Docker Compose: Node.js Express and MySQL example](https://www.bezkoder.com/docker-compose-nodejs-mysql/)\n\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 Vue with Node.js Express](https://www.bezkoder.com/serve-vue-app-express/)\n\n\u003e [Integrate Angular with Node.js Express](https://www.bezkoder.com/integrate-angular-12-node-js/)\n\n\u003e [Integrate React with Node.js Express](https://www.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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbezkoder%2Fnode-js-jwt-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbezkoder%2Fnode-js-jwt-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbezkoder%2Fnode-js-jwt-auth/lists"}