{"action":"created","comment":{"url":"https://api.github.com/repos/CbCaio/express-project-skeleton/pulls/comments/136695087","pull_request_review_id":60274367,"id":136695087,"diff_hunk":"@@ -11,4 +12,12 @@ router.get('/_healthcheck', (req, res) => {\n   res.status(200).send('EUREKA!');\n });\n \n+router.post('/login', authController.login);\n+\n+router.get('/isAuthenticated', authController.isLoggedIn, (req, res) => {","path":"src/routers/healthCheck.js","position":13,"original_position":13,"commit_id":"0cd6d4e8d5ba2b4a0930e9d37067481b523975cc","original_commit_id":"0cd6d4e8d5ba2b4a0930e9d37067481b523975cc","user":{"login":"CbCaio","id":5702563,"avatar_url":"https://avatars3.githubusercontent.com/u/5702563?v=4","gravatar_id":"","url":"https://api.github.com/users/CbCaio","html_url":"https://github.com/CbCaio","followers_url":"https://api.github.com/users/CbCaio/followers","following_url":"https://api.github.com/users/CbCaio/following{/other_user}","gists_url":"https://api.github.com/users/CbCaio/gists{/gist_id}","starred_url":"https://api.github.com/users/CbCaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CbCaio/subscriptions","organizations_url":"https://api.github.com/users/CbCaio/orgs","repos_url":"https://api.github.com/users/CbCaio/repos","events_url":"https://api.github.com/users/CbCaio/events{/privacy}","received_events_url":"https://api.github.com/users/CbCaio/received_events","type":"User","site_admin":false},"body":"why we need this?","created_at":"2017-09-02T12:35:11Z","updated_at":"2017-09-02T12:35:24Z","html_url":"https://github.com/CbCaio/express-project-skeleton/pull/2#discussion_r136695087","pull_request_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/pulls/2","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/CbCaio/express-project-skeleton/pulls/comments/136695087"},"html":{"href":"https://github.com/CbCaio/express-project-skeleton/pull/2#discussion_r136695087"},"pull_request":{"href":"https://api.github.com/repos/CbCaio/express-project-skeleton/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/CbCaio/express-project-skeleton/pulls/2","id":138649884,"html_url":"https://github.com/CbCaio/express-project-skeleton/pull/2","diff_url":"https://github.com/CbCaio/express-project-skeleton/pull/2.diff","patch_url":"https://github.com/CbCaio/express-project-skeleton/pull/2.patch","issue_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/issues/2","number":2,"state":"open","locked":false,"title":"Authentication support with token","user":{"login":"arthurandrade","id":7842988,"avatar_url":"https://avatars2.githubusercontent.com/u/7842988?v=4","gravatar_id":"","url":"https://api.github.com/users/arthurandrade","html_url":"https://github.com/arthurandrade","followers_url":"https://api.github.com/users/arthurandrade/followers","following_url":"https://api.github.com/users/arthurandrade/following{/other_user}","gists_url":"https://api.github.com/users/arthurandrade/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurandrade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurandrade/subscriptions","organizations_url":"https://api.github.com/users/arthurandrade/orgs","repos_url":"https://api.github.com/users/arthurandrade/repos","events_url":"https://api.github.com/users/arthurandrade/events{/privacy}","received_events_url":"https://api.github.com/users/arthurandrade/received_events","type":"User","site_admin":false},"body":"creating methods to authenticate with token using jwt","created_at":"2017-08-31T12:06:09Z","updated_at":"2017-09-02T12:35:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e38a79d1046a742fb186396c21c4a3410bdc5748","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/pulls/2/commits","review_comments_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/pulls/2/comments","review_comment_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/issues/2/comments","statuses_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/statuses/0cd6d4e8d5ba2b4a0930e9d37067481b523975cc","head":{"label":"CbCaio:authentication-support","ref":"authentication-support","sha":"0cd6d4e8d5ba2b4a0930e9d37067481b523975cc","user":{"login":"CbCaio","id":5702563,"avatar_url":"https://avatars3.githubusercontent.com/u/5702563?v=4","gravatar_id":"","url":"https://api.github.com/users/CbCaio","html_url":"https://github.com/CbCaio","followers_url":"https://api.github.com/users/CbCaio/followers","following_url":"https://api.github.com/users/CbCaio/following{/other_user}","gists_url":"https://api.github.com/users/CbCaio/gists{/gist_id}","starred_url":"https://api.github.com/users/CbCaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CbCaio/subscriptions","organizations_url":"https://api.github.com/users/CbCaio/orgs","repos_url":"https://api.github.com/users/CbCaio/repos","events_url":"https://api.github.com/users/CbCaio/events{/privacy}","received_events_url":"https://api.github.com/users/CbCaio/received_events","type":"User","site_admin":false},"repo":{"id":100262376,"name":"express-project-skeleton","full_name":"CbCaio/express-project-skeleton","owner":{"login":"CbCaio","id":5702563,"avatar_url":"https://avatars3.githubusercontent.com/u/5702563?v=4","gravatar_id":"","url":"https://api.github.com/users/CbCaio","html_url":"https://github.com/CbCaio","followers_url":"https://api.github.com/users/CbCaio/followers","following_url":"https://api.github.com/users/CbCaio/following{/other_user}","gists_url":"https://api.github.com/users/CbCaio/gists{/gist_id}","starred_url":"https://api.github.com/users/CbCaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CbCaio/subscriptions","organizations_url":"https://api.github.com/users/CbCaio/orgs","repos_url":"https://api.github.com/users/CbCaio/repos","events_url":"https://api.github.com/users/CbCaio/events{/privacy}","received_events_url":"https://api.github.com/users/CbCaio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CbCaio/express-project-skeleton","description":null,"fork":false,"url":"https://api.github.com/repos/CbCaio/express-project-skeleton","forks_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/forks","keys_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/teams","hooks_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/hooks","issue_events_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/issues/events{/number}","events_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/events","assignees_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/assignees{/user}","branches_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/branches{/branch}","tags_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/tags","blobs_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/git/refs{/sha}","trees_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/statuses/{sha}","languages_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/languages","stargazers_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/stargazers","contributors_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/contributors","subscribers_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/subscribers","subscription_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/subscription","commits_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/commits{/sha}","git_commits_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/git/commits{/sha}","comments_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/comments{/number}","issue_comment_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/issues/comments{/number}","contents_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/contents/{+path}","compare_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/merges","archive_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/downloads","issues_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/issues{/number}","pulls_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/pulls{/number}","milestones_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/milestones{/number}","notifications_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/labels{/name}","releases_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/releases{/id}","deployments_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/deployments","created_at":"2017-08-14T11:55:02Z","updated_at":"2017-08-19T13:31:28Z","pushed_at":"2017-09-02T11:29:34Z","git_url":"git://github.com/CbCaio/express-project-skeleton.git","ssh_url":"git@github.com:CbCaio/express-project-skeleton.git","clone_url":"https://github.com/CbCaio/express-project-skeleton.git","svn_url":"https://github.com/CbCaio/express-project-skeleton","homepage":null,"size":110,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"CbCaio:master","ref":"master","sha":"9577b19cd6f95ba3d9e95ea3c5b8d10e7e7e242c","user":{"login":"CbCaio","id":5702563,"avatar_url":"https://avatars3.githubusercontent.com/u/5702563?v=4","gravatar_id":"","url":"https://api.github.com/users/CbCaio","html_url":"https://github.com/CbCaio","followers_url":"https://api.github.com/users/CbCaio/followers","following_url":"https://api.github.com/users/CbCaio/following{/other_user}","gists_url":"https://api.github.com/users/CbCaio/gists{/gist_id}","starred_url":"https://api.github.com/users/CbCaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CbCaio/subscriptions","organizations_url":"https://api.github.com/users/CbCaio/orgs","repos_url":"https://api.github.com/users/CbCaio/repos","events_url":"https://api.github.com/users/CbCaio/events{/privacy}","received_events_url":"https://api.github.com/users/CbCaio/received_events","type":"User","site_admin":false},"repo":{"id":100262376,"name":"express-project-skeleton","full_name":"CbCaio/express-project-skeleton","owner":{"login":"CbCaio","id":5702563,"avatar_url":"https://avatars3.githubusercontent.com/u/5702563?v=4","gravatar_id":"","url":"https://api.github.com/users/CbCaio","html_url":"https://github.com/CbCaio","followers_url":"https://api.github.com/users/CbCaio/followers","following_url":"https://api.github.com/users/CbCaio/following{/other_user}","gists_url":"https://api.github.com/users/CbCaio/gists{/gist_id}","starred_url":"https://api.github.com/users/CbCaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CbCaio/subscriptions","organizations_url":"https://api.github.com/users/CbCaio/orgs","repos_url":"https://api.github.com/users/CbCaio/repos","events_url":"https://api.github.com/users/CbCaio/events{/privacy}","received_events_url":"https://api.github.com/users/CbCaio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CbCaio/express-project-skeleton","description":null,"fork":false,"url":"https://api.github.com/repos/CbCaio/express-project-skeleton","forks_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/forks","keys_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/teams","hooks_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/hooks","issue_events_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/issues/events{/number}","events_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/events","assignees_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/assignees{/user}","branches_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/branches{/branch}","tags_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/tags","blobs_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/git/refs{/sha}","trees_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/statuses/{sha}","languages_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/languages","stargazers_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/stargazers","contributors_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/contributors","subscribers_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/subscribers","subscription_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/subscription","commits_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/commits{/sha}","git_commits_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/git/commits{/sha}","comments_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/comments{/number}","issue_comment_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/issues/comments{/number}","contents_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/contents/{+path}","compare_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/merges","archive_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/downloads","issues_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/issues{/number}","pulls_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/pulls{/number}","milestones_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/milestones{/number}","notifications_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/labels{/name}","releases_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/releases{/id}","deployments_url":"https://api.github.com/repos/CbCaio/express-project-skeleton/deployments","created_at":"2017-08-14T11:55:02Z","updated_at":"2017-08-19T13:31:28Z","pushed_at":"2017-09-02T11:29:34Z","git_url":"git://github.com/CbCaio/express-project-skeleton.git","ssh_url":"git@github.com:CbCaio/express-project-skeleton.git","clone_url":"https://github.com/CbCaio/express-project-skeleton.git","svn_url":"https://github.com/CbCaio/express-project-skeleton","homepage":null,"size":110,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CbCaio/express-project-skeleton/pulls/2"},"html":{"href":"https://github.com/CbCaio/express-project-skeleton/pull/2"},"issue":{"href":"https://api.github.com/repos/CbCaio/express-project-skeleton/issues/2"},"comments":{"href":"https://api.github.com/repos/CbCaio/express-project-skeleton/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/CbCaio/express-project-skeleton/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/CbCaio/express-project-skeleton/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CbCaio/express-project-skeleton/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/CbCaio/express-project-skeleton/statuses/0cd6d4e8d5ba2b4a0930e9d37067481b523975cc"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"CbCaio"}}