{"id":34499135,"url":"https://github.com/authing/m2m-demo-express","last_synced_at":"2026-06-04T15:31:24.622Z","repository":{"id":49840035,"uuid":"518339693","full_name":"Authing/m2m-demo-express","owner":"Authing","description":"Node.js Express API Server quick start sample program.","archived":false,"fork":false,"pushed_at":"2022-08-12T08:46:26.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2023-03-01T20:25:57.956Z","etag":null,"topics":["authing","m2m"],"latest_commit_sha":null,"homepage":"https://docs.authing.cn/v2/quickstarts/apiServer/nodeJsExpress/","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/Authing.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}},"created_at":"2022-07-27T06:39:58.000Z","updated_at":"2022-10-13T06:34:21.000Z","dependencies_parsed_at":"2022-08-24T19:12:34.042Z","dependency_job_id":null,"html_url":"https://github.com/Authing/m2m-demo-express","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/Authing/m2m-demo-express","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Authing%2Fm2m-demo-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Authing%2Fm2m-demo-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Authing%2Fm2m-demo-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Authing%2Fm2m-demo-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Authing","download_url":"https://codeload.github.com/Authing/m2m-demo-express/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Authing%2Fm2m-demo-express/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27992994,"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","status":"online","status_checked_at":"2025-12-23T02:00:07.087Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["authing","m2m"],"created_at":"2025-12-24T01:58:18.482Z","updated_at":"2025-12-24T01:58:18.896Z","avatar_url":"https://github.com/Authing.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# m2m-demo-express\n\n\u003cdiv align=center\u003e\n  \u003cimg width=\"250\" src=\"https://files.authing.co/authing-console/authing-logo-new-20210924.svg\" /\u003e\n\u003c/div\u003e\n\n\u003cdiv align=center\u003e\n  \u003ca href=\"https://forum.authing.cn/\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/chat-forum-blue\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://opensource.org/licenses/MIT\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-success\" alt=\"License\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n**English** | [简体中文](./README.zh-CN.md)\n\n## Introduction\n\nNode.js Express API Server quick start sample program.\n\n\n## Install dependencies\n\nRun the following command to install the project dependencies:\n\n```bash\n$ npm install\n```\n\n## Fill in your application configuration\n\nOn line 12 of `/app.js`, modify the configuration to your application configuration:\n\n```js\n// Authorization middleware, Access token must exist and can be verified by Authing application public key\nconst checkJwt = jwt({\n  // Dynamically obtain the signature verification public key from the Authing application service discovery address\n  secret: jwksRsa.expressJwtSecret({\n    cache: true,\n    rateLimit: true,\n    jwksRequestsPerMinute: 5,\n    jwksUri: `https://{APP_DOMAIN}.authing.cn/oidc/.well-known/jwks.json`\n  }),\n\n  // Verify audience and issuer\n  audience: 'APP_ID',\n  issuer: [`https://{APP_DOMAIN}.authing.cn/oidc`],\n  algorithms: ['RS256']\n});\n```\n\n## Run\n\nRun this sample program:\n\n```bash\n$ npm start\n```\n\n## Reference\n\n[Node.js Express API Server Quick Start](https://docs.authing.cn/v2/quickstarts/apiServer/nodeJsExpress)\n\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n\nCopyright (c) 2019-present, Authing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauthing%2Fm2m-demo-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fauthing%2Fm2m-demo-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fauthing%2Fm2m-demo-express/lists"}