payload: {"action":"created","comment":{"url":"https://api.github.com/repos/andela/ah-92explorers-backend/pulls/comments/299334809","pull_request_review_id":256704771,"id":299334809,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5OTMzNDgwOQ==","diff_hunk":"@@ -15,33 +15,34 @@ app.use(cors());\n app.use(bodyParser.urlencoded({ extended: false }));\n app.use(bodyParser.json());\n \n-app.use(require(\"method-override\")());\n-app.use(express.static(__dirname + \"/public\"));\n+app.use(require('method-override')());\n \n-app.get(\"/swagger.json\", (req, res) => {\n-  res.setHeader(\"Content-Type\", \"application/json\");\n+app.use(express.static(`${__dirname}/public`));","path":"index.js","position":28,"original_position":28,"commit_id":"4c1dc33ade81843f1157fb507d95f10f8f51cc5f","original_commit_id":"4c1dc33ade81843f1157fb507d95f10f8f51cc5f","user":{"login":"hound[bot]","id":30008653,"node_id":"MDM6Qm90MzAwMDg2NTM=","avatar_url":"https://avatars1.githubusercontent.com/in/3598?v=4","gravatar_id":"","url":"https://api.github.com/users/hound%5Bbot%5D","html_url":"https://github.com/apps/hound","followers_url":"https://api.github.com/users/hound%5Bbot%5D/followers","following_url":"https://api.github.com/users/hound%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/hound%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/hound%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hound%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/hound%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/hound%5Bbot%5D/repos","events_url":"https://api.github.com/users/hound%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/hound%5Bbot%5D/received_events","type":"Bot","site_admin":false},"body":"'template literal syntax' is only available in ES6 (use 'esversion: 6').","created_at":"2019-07-02T07:19:32Z","updated_at":"2019-07-02T07:19:33Z","html_url":"https://github.com/andela/ah-92explorers-backend/pull/23#discussion_r299334809","pull_request_url":"https://api.github.com/repos/andela/ah-92explorers-backend/pulls/23","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/andela/ah-92explorers-backend/pulls/comments/299334809"},"html":{"href":"https://github.com/andela/ah-92explorers-backend/pull/23#discussion_r299334809"},"pull_request":{"href":"https://api.github.com/repos/andela/ah-92explorers-backend/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/andela/ah-92explorers-backend/pulls/23","id":293326800,"node_id":"MDExOlB1bGxSZXF1ZXN0MjkzMzI2ODAw","html_url":"https://github.com/andela/ah-92explorers-backend/pull/23","diff_url":"https://github.com/andela/ah-92explorers-backend/pull/23.diff","patch_url":"https://github.com/andela/ah-92explorers-backend/pull/23.patch","issue_url":"https://api.github.com/repos/andela/ah-92explorers-backend/issues/23","number":23,"state":"open","locked":false,"title":"#166789989 users should receive a jwt on successful registration","user":{"login":"elemanhillary","id":14273401,"node_id":"MDQ6VXNlcjE0MjczNDAx","avatar_url":"https://avatars1.githubusercontent.com/u/14273401?v=4","gravatar_id":"","url":"https://api.github.com/users/elemanhillary","html_url":"https://github.com/elemanhillary","followers_url":"https://api.github.com/users/elemanhillary/followers","following_url":"https://api.github.com/users/elemanhillary/following{/other_user}","gists_url":"https://api.github.com/users/elemanhillary/gists{/gist_id}","starred_url":"https://api.github.com/users/elemanhillary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elemanhillary/subscriptions","organizations_url":"https://api.github.com/users/elemanhillary/orgs","repos_url":"https://api.github.com/users/elemanhillary/repos","events_url":"https://api.github.com/users/elemanhillary/events{/privacy}","received_events_url":"https://api.github.com/users/elemanhillary/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n- Add json web token features such as(generate token and check token)\r\n\r\n#### Description of Task to be completed\r\n- Ensures user receives json web token on successful registration\r\n\r\n#### How should this be manually tested?\r\n```\r\ngit clone https://github.com/andela/ah-92explorers-backend.git\r\ncd ah-92explorers-backend\r\ngit checkout ft-auth-jwt-166789989\r\nnpm install\r\nnpm start\r\n```\r\n#### Any background context you want to provide?\r\n- None\r\n#### What are the relevant pivotal tracker stories?\r\n[166789989](https://www.pivotaltracker.com/story/show/166789989)\r\n#### Screenshots (if appropriate)\r\n![Imgur](https://i.imgur.com/xWAOBMX.png)\r\n#### Checklist\r\n\r\n- [x] My code follows the style guidelines of this project\r\n- [ ] I have commented my code, particularly in hard-to-understand areas\r\n- [ ] I have made corresponding changes to the documentation\r\n- [x] My changes generate no new warnings\r\n- [x] I don't have more than 3 major commits on this PR","created_at":"2019-07-01T12:52:52Z","updated_at":"2019-07-02T07:19:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"05834de0a80c8f9d27f317d98c03a623aa911e5d","assignee":null,"assignees":[],"requested_reviewers":[{"login":"kodek-sleuth","id":41841554,"node_id":"MDQ6VXNlcjQxODQxNTU0","avatar_url":"https://avatars1.githubusercontent.com/u/41841554?v=4","gravatar_id":"","url":"https://api.github.com/users/kodek-sleuth","html_url":"https://github.com/kodek-sleuth","followers_url":"https://api.github.com/users/kodek-sleuth/followers","following_url":"https://api.github.com/users/kodek-sleuth/following{/other_user}","gists_url":"https://api.github.com/users/kodek-sleuth/gists{/gist_id}","starred_url":"https://api.github.com/users/kodek-sleuth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kodek-sleuth/subscriptions","organizations_url":"https://api.github.com/users/kodek-sleuth/orgs","repos_url":"https://api.github.com/users/kodek-sleuth/repos","events_url":"https://api.github.com/users/kodek-sleuth/events{/privacy}","received_events_url":"https://api.github.com/users/kodek-sleuth/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1427363471,"node_id":"MDU6TGFiZWwxNDI3MzYzNDcx","url":"https://api.github.com/repos/andela/ah-92explorers-backend/labels/ready-for-review","name":"ready-for-review","color":"0e8a16","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/andela/ah-92explorers-backend/pulls/23/commits","review_comments_url":"https://api.github.com/repos/andela/ah-92explorers-backend/pulls/23/comments","review_comment_url":"https://api.github.com/repos/andela/ah-92explorers-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/ah-92explorers-backend/issues/23/comments","statuses_url":"https://api.github.com/repos/andela/ah-92explorers-backend/statuses/4c1dc33ade81843f1157fb507d95f10f8f51cc5f","head":{"label":"andela:ft-auth-jwt-166789989","ref":"ft-auth-jwt-166789989","sha":"4c1dc33ade81843f1157fb507d95f10f8f51cc5f","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":192725557,"node_id":"MDEwOlJlcG9zaXRvcnkxOTI3MjU1NTc=","name":"ah-92explorers-backend","full_name":"andela/ah-92explorers-backend","private":false,"owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/andela/ah-92explorers-backend","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-92explorers-backend","forks_url":"https://api.github.com/repos/andela/ah-92explorers-backend/forks","keys_url":"https://api.github.com/repos/andela/ah-92explorers-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-92explorers-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-92explorers-backend/teams","hooks_url":"https://api.github.com/repos/andela/ah-92explorers-backend/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-92explorers-backend/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-92explorers-backend/events","assignees_url":"https://api.github.com/repos/andela/ah-92explorers-backend/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-92explorers-backend/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-92explorers-backend/tags","blobs_url":"https://api.github.com/repos/andela/ah-92explorers-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-92explorers-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-92explorers-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-92explorers-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-92explorers-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-92explorers-backend/languages","stargazers_url":"https://api.github.com/repos/andela/ah-92explorers-backend/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-92explorers-backend/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-92explorers-backend/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-92explorers-backend/subscription","commits_url":"https://api.github.com/repos/andela/ah-92explorers-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-92explorers-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-92explorers-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-92explorers-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-92explorers-backend/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-92explorers-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-92explorers-backend/merges","archive_url":"https://api.github.com/repos/andela/ah-92explorers-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-92explorers-backend/downloads","issues_url":"https://api.github.com/repos/andela/ah-92explorers-backend/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-92explorers-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-92explorers-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-92explorers-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-92explorers-backend/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-92explorers-backend/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-92explorers-backend/deployments","created_at":"2019-06-19T12:12:45Z","updated_at":"2019-06-28T18:33:23Z","pushed_at":"2019-07-02T07:19:26Z","git_url":"git://github.com/andela/ah-92explorers-backend.git","ssh_url":"git@github.com:andela/ah-92explorers-backend.git","clone_url":"https://github.com/andela/ah-92explorers-backend.git","svn_url":"https://github.com/andela/ah-92explorers-backend","homepage":null,"size":173,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":null,"forks":1,"open_issues":2,"watchers":1,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"43c0ce8cdc098a05f5b7e992a8de7b09dea27bc0","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":192725557,"node_id":"MDEwOlJlcG9zaXRvcnkxOTI3MjU1NTc=","name":"ah-92explorers-backend","full_name":"andela/ah-92explorers-backend","private":false,"owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/andela/ah-92explorers-backend","description":null,"fork":false,"url":"https://api.github.com/repos/andela/ah-92explorers-backend","forks_url":"https://api.github.com/repos/andela/ah-92explorers-backend/forks","keys_url":"https://api.github.com/repos/andela/ah-92explorers-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/ah-92explorers-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/ah-92explorers-backend/teams","hooks_url":"https://api.github.com/repos/andela/ah-92explorers-backend/hooks","issue_events_url":"https://api.github.com/repos/andela/ah-92explorers-backend/issues/events{/number}","events_url":"https://api.github.com/repos/andela/ah-92explorers-backend/events","assignees_url":"https://api.github.com/repos/andela/ah-92explorers-backend/assignees{/user}","branches_url":"https://api.github.com/repos/andela/ah-92explorers-backend/branches{/branch}","tags_url":"https://api.github.com/repos/andela/ah-92explorers-backend/tags","blobs_url":"https://api.github.com/repos/andela/ah-92explorers-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/ah-92explorers-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/ah-92explorers-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/ah-92explorers-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/ah-92explorers-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/ah-92explorers-backend/languages","stargazers_url":"https://api.github.com/repos/andela/ah-92explorers-backend/stargazers","contributors_url":"https://api.github.com/repos/andela/ah-92explorers-backend/contributors","subscribers_url":"https://api.github.com/repos/andela/ah-92explorers-backend/subscribers","subscription_url":"https://api.github.com/repos/andela/ah-92explorers-backend/subscription","commits_url":"https://api.github.com/repos/andela/ah-92explorers-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/ah-92explorers-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/ah-92explorers-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/ah-92explorers-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/ah-92explorers-backend/contents/{+path}","compare_url":"https://api.github.com/repos/andela/ah-92explorers-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/ah-92explorers-backend/merges","archive_url":"https://api.github.com/repos/andela/ah-92explorers-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/ah-92explorers-backend/downloads","issues_url":"https://api.github.com/repos/andela/ah-92explorers-backend/issues{/number}","pulls_url":"https://api.github.com/repos/andela/ah-92explorers-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/ah-92explorers-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/ah-92explorers-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/ah-92explorers-backend/labels{/name}","releases_url":"https://api.github.com/repos/andela/ah-92explorers-backend/releases{/id}","deployments_url":"https://api.github.com/repos/andela/ah-92explorers-backend/deployments","created_at":"2019-06-19T12:12:45Z","updated_at":"2019-06-28T18:33:23Z","pushed_at":"2019-07-02T07:19:26Z","git_url":"git://github.com/andela/ah-92explorers-backend.git","ssh_url":"git@github.com:andela/ah-92explorers-backend.git","clone_url":"https://github.com/andela/ah-92explorers-backend.git","svn_url":"https://github.com/andela/ah-92explorers-backend","homepage":null,"size":173,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":null,"forks":1,"open_issues":2,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/ah-92explorers-backend/pulls/23"},"html":{"href":"https://github.com/andela/ah-92explorers-backend/pull/23"},"issue":{"href":"https://api.github.com/repos/andela/ah-92explorers-backend/issues/23"},"comments":{"href":"https://api.github.com/repos/andela/ah-92explorers-backend/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/ah-92explorers-backend/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/ah-92explorers-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/ah-92explorers-backend/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/andela/ah-92explorers-backend/statuses/4c1dc33ade81843f1157fb507d95f10f8f51cc5f"}},"author_association":"COLLABORATOR"}}
other: {"actor":{"display_login":"hound"}}