{"id":22336543,"url":"https://github.com/zhangmingfeng/egg-easy-jwt","last_synced_at":"2025-07-29T22:32:17.327Z","repository":{"id":57220453,"uuid":"153089566","full_name":"zhangmingfeng/egg-easy-jwt","owner":"zhangmingfeng","description":"jwt(jsonwebtoken) plugin for Egg.js","archived":false,"fork":false,"pushed_at":"2019-05-05T00:51:45.000Z","size":3,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-20T22:20:50.491Z","etag":null,"topics":["egg","egg-plugin","jsonwebtoken","jwt"],"latest_commit_sha":null,"homepage":"","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/zhangmingfeng.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":"2018-10-15T09:47:12.000Z","updated_at":"2020-11-29T01:32:59.000Z","dependencies_parsed_at":"2022-08-29T00:11:54.534Z","dependency_job_id":null,"html_url":"https://github.com/zhangmingfeng/egg-easy-jwt","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/zhangmingfeng%2Fegg-easy-jwt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangmingfeng%2Fegg-easy-jwt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangmingfeng%2Fegg-easy-jwt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangmingfeng%2Fegg-easy-jwt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhangmingfeng","download_url":"https://codeload.github.com/zhangmingfeng/egg-easy-jwt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228054507,"owners_count":17862129,"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":["egg","egg-plugin","jsonwebtoken","jwt"],"created_at":"2024-12-04T06:07:10.385Z","updated_at":"2024-12-04T06:07:13.625Z","avatar_url":"https://github.com/zhangmingfeng.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# egg-easy-jwt\njsonwebtoken plugin for Egg.js.\n\n\u003e NOTE: This plugin just for integrate jsonwebtoken into Egg.js, more documentation please visit [node-jsonwebtoken](https://github.com/auth0/node-jsonwebtoken).\n\n# Install\n\n```bash\n$ npm i --save egg-easy-jwt\n```\n\n## Usage \u0026 configuration\n\n- `config/plugin.js`\n\n``` js\nexports.jwt = {\n  enable: true,\n  package: 'egg-easy-jwt'\n}\n```\n\n### example\n\n```js\n// controller.js or service.js\nconst token = await this.ctx.jwt.sign({\n            a: 1,\n            b: 2\n        }, \"secret\");\nconst verify = await this.ctx.jwt.verify(token, \"secret\");\nconst decode = this.ctx.jwt.decode(token);\n```\nmore example please visit https://github.com/auth0/node-jsonwebtoken.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhangmingfeng%2Fegg-easy-jwt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhangmingfeng%2Fegg-easy-jwt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhangmingfeng%2Fegg-easy-jwt/lists"}