{"action":"created","issue":{"url":"https://api.github.com/repos/easy-mock/easy-mock/issues/43","repository_url":"https://api.github.com/repos/easy-mock/easy-mock","labels_url":"https://api.github.com/repos/easy-mock/easy-mock/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/easy-mock/easy-mock/issues/43/comments","events_url":"https://api.github.com/repos/easy-mock/easy-mock/issues/43/events","html_url":"https://github.com/easy-mock/easy-mock/issues/43","id":256256074,"number":43,"title":"登录后返回401，token已存储到mongo","user":{"login":"heibai01","id":7297860,"avatar_url":"https://avatars1.githubusercontent.com/u/7297860?v=4","gravatar_id":"","url":"https://api.github.com/users/heibai01","html_url":"https://github.com/heibai01","followers_url":"https://api.github.com/users/heibai01/followers","following_url":"https://api.github.com/users/heibai01/following{/other_user}","gists_url":"https://api.github.com/users/heibai01/gists{/gist_id}","starred_url":"https://api.github.com/users/heibai01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heibai01/subscriptions","organizations_url":"https://api.github.com/users/heibai01/orgs","repos_url":"https://api.github.com/users/heibai01/repos","events_url":"https://api.github.com/users/heibai01/events{/privacy}","received_events_url":"https://api.github.com/users/heibai01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-08T13:35:54Z","updated_at":"2017-09-08T16:45:56Z","closed_at":null,"author_association":"NONE","body":"# 问题一\r\napp.js\r\n      secret: config.get('jwt.key')\r\n这个应该是 jwt.secret 吧？\r\n\r\n# 问题二\r\n\r\n登录成功\r\n```json\r\n{\"code\":200,\"success\":true,\"message\":\"success\",\"data\":{\"_id\":\"59b26da1f93a29304db9f36b\",\"name\":\"heibai\",\"nick_name\":\"1504865697888\",\"head_img\":\"//img.souche.com/20161230/png/bc836261fbb654dda6b653e428014279.png\",\"token\":\"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJqdGkiOiI1OWIyNmRhMmY5M2EyOTMwNGRiOWYzNzQiLCJleHAiOjE1MDYwNzUyOTgsImlkIjoiNTliMjZkYTFmOTNhMjkzMDRkYjlmMzZiIiwiaWF0IjoxNTA0ODY1Njk4fQ.vBv6B4TjMvDeOm4iNst6Cqe-ApLe2mdFpOSc7ZZb3y8\"}}\r\n```\r\n\r\n接着获取项目列表（/api/project）返回401 \"token expired\" \r\n"},"comment":{"url":"https://api.github.com/repos/easy-mock/easy-mock/issues/comments/328155551","html_url":"https://github.com/easy-mock/easy-mock/issues/43#issuecomment-328155551","issue_url":"https://api.github.com/repos/easy-mock/easy-mock/issues/43","id":328155551,"user":{"login":"chuangker","id":7939566,"avatar_url":"https://avatars2.githubusercontent.com/u/7939566?v=4","gravatar_id":"","url":"https://api.github.com/users/chuangker","html_url":"https://github.com/chuangker","followers_url":"https://api.github.com/users/chuangker/followers","following_url":"https://api.github.com/users/chuangker/following{/other_user}","gists_url":"https://api.github.com/users/chuangker/gists{/gist_id}","starred_url":"https://api.github.com/users/chuangker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuangker/subscriptions","organizations_url":"https://api.github.com/users/chuangker/orgs","repos_url":"https://api.github.com/users/chuangker/repos","events_url":"https://api.github.com/users/chuangker/events{/privacy}","received_events_url":"https://api.github.com/users/chuangker/received_events","type":"User","site_admin":false},"created_at":"2017-09-08T16:45:56Z","updated_at":"2017-09-08T16:45:56Z","author_association":"CONTRIBUTOR","body":"### 问题一\r\n配置确实写错了，下个版本会修复。\r\n### 问题二\r\n尝试清空 mongo 下的 token 表，然后再试试登录。"}}
{"actor":{"display_login":"chuangker"}}