{"id":20520500,"url":"https://github.com/dynamicsingh/node-jwt-auth-app","last_synced_at":"2026-04-21T06:07:28.148Z","repository":{"id":124981073,"uuid":"80974501","full_name":"dynamicsingh/node-jwt-auth-app","owner":"dynamicsingh","description":"Authenticating via JWT using express route middleware","archived":false,"fork":false,"pushed_at":"2017-02-05T06:47:00.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-06T00:23:03.512Z","etag":null,"topics":[],"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/dynamicsingh.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":"2017-02-05T06:41:58.000Z","updated_at":"2023-03-09T04:08:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"c725ee5c-9ad2-47e5-8557-52798c6381e1","html_url":"https://github.com/dynamicsingh/node-jwt-auth-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dynamicsingh/node-jwt-auth-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamicsingh%2Fnode-jwt-auth-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamicsingh%2Fnode-jwt-auth-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamicsingh%2Fnode-jwt-auth-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamicsingh%2Fnode-jwt-auth-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dynamicsingh","download_url":"https://codeload.github.com/dynamicsingh/node-jwt-auth-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dynamicsingh%2Fnode-jwt-auth-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32079519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T02:38:07.213Z","status":"ssl_error","status_checked_at":"2026-04-21T02:38:06.559Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-15T22:20:02.756Z","updated_at":"2026-04-21T06:07:28.134Z","avatar_url":"https://github.com/dynamicsingh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-jwt-authentication-app\n\nDemonstrating authentication by verifying a token using Express route middleware.\n\n## Requirements\n\n- node, npm, express and mongoose\n\n## Usage\n\n1. Clone the repo\n2. Install dependencies: `npm install`\n3. Change SECRET in `config.js`\n4. Add your own MongoDB database to `config.js`\n5. Start the server: `node server.js`\n6. Create sample user by visiting: `http://localhost:3000/setup`\n\nOnce everything is set up, we can begin to use our app by creating and verifying tokens.\n\n### Getting a Token\n\nSend a `POST` request to `http://localhost:3000/api/authenticate`. \n\n### Verifying a Token and Listing Users\n\nYou can also send the token as a URL parameter: `http://localhost:3000/api/users?token=YOUR_TOKEN_HERE`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynamicsingh%2Fnode-jwt-auth-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdynamicsingh%2Fnode-jwt-auth-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdynamicsingh%2Fnode-jwt-auth-app/lists"}