{"id":18881339,"url":"https://github.com/apal21/express-jwt-auth-server","last_synced_at":"2025-04-14T20:09:38.034Z","repository":{"id":66336471,"uuid":"174396885","full_name":"apal21/express-jwt-auth-server","owner":"apal21","description":"Express.js JWT Auth Server with Babel and ESLint Airbnb, MongoDB and Redis.","archived":false,"fork":false,"pushed_at":"2019-04-03T08:32:58.000Z","size":243,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T20:09:31.357Z","etag":null,"topics":["babel","eslint","express","expressjs","mongodb","mongoose","nodejs","redis","redis-client","redis-server"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/apal21.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-03-07T18:13:56.000Z","updated_at":"2023-12-25T14:31:06.000Z","dependencies_parsed_at":"2023-03-15T20:30:47.083Z","dependency_job_id":null,"html_url":"https://github.com/apal21/express-jwt-auth-server","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/apal21%2Fexpress-jwt-auth-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apal21%2Fexpress-jwt-auth-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apal21%2Fexpress-jwt-auth-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apal21%2Fexpress-jwt-auth-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apal21","download_url":"https://codeload.github.com/apal21/express-jwt-auth-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248952349,"owners_count":21188426,"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":["babel","eslint","express","expressjs","mongodb","mongoose","nodejs","redis","redis-client","redis-server"],"created_at":"2024-11-08T06:48:45.425Z","updated_at":"2025-04-14T20:09:38.028Z","avatar_url":"https://github.com/apal21.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express JWT Auth Server\nJWT Auth Server implementation in Express.js using _Babel_ and _ESLint Airbnb_.\n\n**Database:**\n* MongoDB\n* Redis\n\n**Note:** _This server is not meant to connect directly with the frontend as you can set the configurations from the API call and this returns all the server errors(if any) in the response._\n\n## Usage\n* First copy/rename `.env.sample` to `.env`\n* Generate one `RS256` key-pair and paste the content in the respective fields of `.env` file. Refer [this gist](https://gist.github.com/ygotthilf/baa58da5c3dd1f69fae9)\n* Setup MongoDB and Redis on your machine.\n* Install all the NPM dependencies: `npm i`\n* To watch all the changes in development: `npm start`\n* To deploy this in production: `npm run production`\n\n## Features\n* Multiple User Roles and Verification\n* Sign tokens using Public Key encryption\n* Verify tokens using Whitelisting strategy\n* Written in modern JavaScript\n* ESLint pre-commit hook\n* Set dynamic expiration time and subject in the token\n\n## Routes\n1. [User CRUD routes for admins](https://github.com/apal21/express-jwt-auth-server/wiki/User-CRUD-Routes):\n    * `GET` `/users`\n    * `POST` `/users`\n    * `GET` `/users/:id`\n    * `PUT` `/users/:id`\n    * `DELETE` `/users/:id`\n    \n2. [Auth Routes](https://github.com/apal21/express-jwt-auth-server/wiki/Auth-Routes):\n    * `POST` `/auth/login`\n    * `POST` `/auth/register`\n    * `POST` `/auth/forgot`\n    * `POST` `/auth/reset/:id`\n    * `POST` `/auth/logout`\n    * `POST` `/auth/verify`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapal21%2Fexpress-jwt-auth-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapal21%2Fexpress-jwt-auth-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapal21%2Fexpress-jwt-auth-server/lists"}