{"action":"created","comment":{"url":"https://api.github.com/repos/fac-13/stackMatch/pulls/comments/187088129","pull_request_review_id":118797572,"id":187088129,"diff_hunk":"@@ -1,8 +1,42 @@\n+// Import modules\n const express = require('express');\n-const path = require('path');\n const exphbs = require('express-handlebars');\n+const path = require('path');\n+const cookieSession = require('cookie-session');\n+const bodyParser = require('body-parser');\n+\n+require('dotenv').config();\n+\n+// Import Passport and Strategy\n+const passport = require('passport');\n+const Strategy = require('passport-github2').Strategy;","path":"src/app.js","position":13,"original_position":13,"commit_id":"79153f7027e8cbb94f727b2c012171255d553561","original_commit_id":"79153f7027e8cbb94f727b2c012171255d553561","user":{"login":"LawEKS","id":18592207,"avatar_url":"https://avatars1.githubusercontent.com/u/18592207?v=4","gravatar_id":"","url":"https://api.github.com/users/LawEKS","html_url":"https://github.com/LawEKS","followers_url":"https://api.github.com/users/LawEKS/followers","following_url":"https://api.github.com/users/LawEKS/following{/other_user}","gists_url":"https://api.github.com/users/LawEKS/gists{/gist_id}","starred_url":"https://api.github.com/users/LawEKS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LawEKS/subscriptions","organizations_url":"https://api.github.com/users/LawEKS/orgs","repos_url":"https://api.github.com/users/LawEKS/repos","events_url":"https://api.github.com/users/LawEKS/events{/privacy}","received_events_url":"https://api.github.com/users/LawEKS/received_events","type":"User","site_admin":false},"body":"we could use object destructuring on 'Strategy'","created_at":"2018-05-09T15:52:27Z","updated_at":"2018-05-09T15:52:27Z","html_url":"https://github.com/fac-13/stackMatch/pull/51#discussion_r187088129","pull_request_url":"https://api.github.com/repos/fac-13/stackMatch/pulls/51","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/fac-13/stackMatch/pulls/comments/187088129"},"html":{"href":"https://github.com/fac-13/stackMatch/pull/51#discussion_r187088129"},"pull_request":{"href":"https://api.github.com/repos/fac-13/stackMatch/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/fac-13/stackMatch/pulls/51","id":186960758,"html_url":"https://github.com/fac-13/stackMatch/pull/51","diff_url":"https://github.com/fac-13/stackMatch/pull/51.diff","patch_url":"https://github.com/fac-13/stackMatch/pull/51.patch","issue_url":"https://api.github.com/repos/fac-13/stackMatch/issues/51","number":51,"state":"open","locked":false,"title":"Setup oauth","user":{"login":"vlbee","id":32312712,"avatar_url":"https://avatars3.githubusercontent.com/u/32312712?v=4","gravatar_id":"","url":"https://api.github.com/users/vlbee","html_url":"https://github.com/vlbee","followers_url":"https://api.github.com/users/vlbee/followers","following_url":"https://api.github.com/users/vlbee/following{/other_user}","gists_url":"https://api.github.com/users/vlbee/gists{/gist_id}","starred_url":"https://api.github.com/users/vlbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlbee/subscriptions","organizations_url":"https://api.github.com/users/vlbee/orgs","repos_url":"https://api.github.com/users/vlbee/repos","events_url":"https://api.github.com/users/vlbee/events{/privacy}","received_events_url":"https://api.github.com/users/vlbee/received_events","type":"User","site_admin":false},"body":"Adds signup, callback, logout  routes for oAuth via Github using Passport.js. \r\n\r\nSession management needs work \r\nPassport middleware needs to be modularised. \r\nHTTPS local host should be removed and tested without. ","created_at":"2018-05-09T15:38:21Z","updated_at":"2018-05-09T15:52:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e84d3a491130ae44c31aa64fc088df8855225f07","assignee":null,"assignees":[],"requested_reviewers":[{"login":"tdoran","id":29519739,"avatar_url":"https://avatars3.githubusercontent.com/u/29519739?v=4","gravatar_id":"","url":"https://api.github.com/users/tdoran","html_url":"https://github.com/tdoran","followers_url":"https://api.github.com/users/tdoran/followers","following_url":"https://api.github.com/users/tdoran/following{/other_user}","gists_url":"https://api.github.com/users/tdoran/gists{/gist_id}","starred_url":"https://api.github.com/users/tdoran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdoran/subscriptions","organizations_url":"https://api.github.com/users/tdoran/orgs","repos_url":"https://api.github.com/users/tdoran/repos","events_url":"https://api.github.com/users/tdoran/events{/privacy}","received_events_url":"https://api.github.com/users/tdoran/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fac-13/stackMatch/pulls/51/commits","review_comments_url":"https://api.github.com/repos/fac-13/stackMatch/pulls/51/comments","review_comment_url":"https://api.github.com/repos/fac-13/stackMatch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fac-13/stackMatch/issues/51/comments","statuses_url":"https://api.github.com/repos/fac-13/stackMatch/statuses/79153f7027e8cbb94f727b2c012171255d553561","head":{"label":"fac-13:setup-oauth","ref":"setup-oauth","sha":"79153f7027e8cbb94f727b2c012171255d553561","user":{"login":"fac-13","id":31545747,"avatar_url":"https://avatars0.githubusercontent.com/u/31545747?v=4","gravatar_id":"","url":"https://api.github.com/users/fac-13","html_url":"https://github.com/fac-13","followers_url":"https://api.github.com/users/fac-13/followers","following_url":"https://api.github.com/users/fac-13/following{/other_user}","gists_url":"https://api.github.com/users/fac-13/gists{/gist_id}","starred_url":"https://api.github.com/users/fac-13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fac-13/subscriptions","organizations_url":"https://api.github.com/users/fac-13/orgs","repos_url":"https://api.github.com/users/fac-13/repos","events_url":"https://api.github.com/users/fac-13/events{/privacy}","received_events_url":"https://api.github.com/users/fac-13/received_events","type":"Organization","site_admin":false},"repo":{"id":132032499,"name":"stackMatch","full_name":"fac-13/stackMatch","owner":{"login":"fac-13","id":31545747,"avatar_url":"https://avatars0.githubusercontent.com/u/31545747?v=4","gravatar_id":"","url":"https://api.github.com/users/fac-13","html_url":"https://github.com/fac-13","followers_url":"https://api.github.com/users/fac-13/followers","following_url":"https://api.github.com/users/fac-13/following{/other_user}","gists_url":"https://api.github.com/users/fac-13/gists{/gist_id}","starred_url":"https://api.github.com/users/fac-13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fac-13/subscriptions","organizations_url":"https://api.github.com/users/fac-13/orgs","repos_url":"https://api.github.com/users/fac-13/repos","events_url":"https://api.github.com/users/fac-13/events{/privacy}","received_events_url":"https://api.github.com/users/fac-13/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fac-13/stackMatch","description":"App to connect FAC members to each other 👌","fork":false,"url":"https://api.github.com/repos/fac-13/stackMatch","forks_url":"https://api.github.com/repos/fac-13/stackMatch/forks","keys_url":"https://api.github.com/repos/fac-13/stackMatch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fac-13/stackMatch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fac-13/stackMatch/teams","hooks_url":"https://api.github.com/repos/fac-13/stackMatch/hooks","issue_events_url":"https://api.github.com/repos/fac-13/stackMatch/issues/events{/number}","events_url":"https://api.github.com/repos/fac-13/stackMatch/events","assignees_url":"https://api.github.com/repos/fac-13/stackMatch/assignees{/user}","branches_url":"https://api.github.com/repos/fac-13/stackMatch/branches{/branch}","tags_url":"https://api.github.com/repos/fac-13/stackMatch/tags","blobs_url":"https://api.github.com/repos/fac-13/stackMatch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fac-13/stackMatch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fac-13/stackMatch/git/refs{/sha}","trees_url":"https://api.github.com/repos/fac-13/stackMatch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fac-13/stackMatch/statuses/{sha}","languages_url":"https://api.github.com/repos/fac-13/stackMatch/languages","stargazers_url":"https://api.github.com/repos/fac-13/stackMatch/stargazers","contributors_url":"https://api.github.com/repos/fac-13/stackMatch/contributors","subscribers_url":"https://api.github.com/repos/fac-13/stackMatch/subscribers","subscription_url":"https://api.github.com/repos/fac-13/stackMatch/subscription","commits_url":"https://api.github.com/repos/fac-13/stackMatch/commits{/sha}","git_commits_url":"https://api.github.com/repos/fac-13/stackMatch/git/commits{/sha}","comments_url":"https://api.github.com/repos/fac-13/stackMatch/comments{/number}","issue_comment_url":"https://api.github.com/repos/fac-13/stackMatch/issues/comments{/number}","contents_url":"https://api.github.com/repos/fac-13/stackMatch/contents/{+path}","compare_url":"https://api.github.com/repos/fac-13/stackMatch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fac-13/stackMatch/merges","archive_url":"https://api.github.com/repos/fac-13/stackMatch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fac-13/stackMatch/downloads","issues_url":"https://api.github.com/repos/fac-13/stackMatch/issues{/number}","pulls_url":"https://api.github.com/repos/fac-13/stackMatch/pulls{/number}","milestones_url":"https://api.github.com/repos/fac-13/stackMatch/milestones{/number}","notifications_url":"https://api.github.com/repos/fac-13/stackMatch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fac-13/stackMatch/labels{/name}","releases_url":"https://api.github.com/repos/fac-13/stackMatch/releases{/id}","deployments_url":"https://api.github.com/repos/fac-13/stackMatch/deployments","created_at":"2018-05-03T18:06:43Z","updated_at":"2018-05-09T12:02:41Z","pushed_at":"2018-05-09T15:38:23Z","git_url":"git://github.com/fac-13/stackMatch.git","ssh_url":"git@github.com:fac-13/stackMatch.git","clone_url":"https://github.com/fac-13/stackMatch.git","svn_url":"https://github.com/fac-13/stackMatch","homepage":"","size":247,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":38,"license":null,"forks":0,"open_issues":38,"watchers":3,"default_branch":"master"}},"base":{"label":"fac-13:master","ref":"master","sha":"4b477efabf7d4b85af3d0b8bd4f5db2c567e7948","user":{"login":"fac-13","id":31545747,"avatar_url":"https://avatars0.githubusercontent.com/u/31545747?v=4","gravatar_id":"","url":"https://api.github.com/users/fac-13","html_url":"https://github.com/fac-13","followers_url":"https://api.github.com/users/fac-13/followers","following_url":"https://api.github.com/users/fac-13/following{/other_user}","gists_url":"https://api.github.com/users/fac-13/gists{/gist_id}","starred_url":"https://api.github.com/users/fac-13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fac-13/subscriptions","organizations_url":"https://api.github.com/users/fac-13/orgs","repos_url":"https://api.github.com/users/fac-13/repos","events_url":"https://api.github.com/users/fac-13/events{/privacy}","received_events_url":"https://api.github.com/users/fac-13/received_events","type":"Organization","site_admin":false},"repo":{"id":132032499,"name":"stackMatch","full_name":"fac-13/stackMatch","owner":{"login":"fac-13","id":31545747,"avatar_url":"https://avatars0.githubusercontent.com/u/31545747?v=4","gravatar_id":"","url":"https://api.github.com/users/fac-13","html_url":"https://github.com/fac-13","followers_url":"https://api.github.com/users/fac-13/followers","following_url":"https://api.github.com/users/fac-13/following{/other_user}","gists_url":"https://api.github.com/users/fac-13/gists{/gist_id}","starred_url":"https://api.github.com/users/fac-13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fac-13/subscriptions","organizations_url":"https://api.github.com/users/fac-13/orgs","repos_url":"https://api.github.com/users/fac-13/repos","events_url":"https://api.github.com/users/fac-13/events{/privacy}","received_events_url":"https://api.github.com/users/fac-13/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fac-13/stackMatch","description":"App to connect FAC members to each other 👌","fork":false,"url":"https://api.github.com/repos/fac-13/stackMatch","forks_url":"https://api.github.com/repos/fac-13/stackMatch/forks","keys_url":"https://api.github.com/repos/fac-13/stackMatch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fac-13/stackMatch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fac-13/stackMatch/teams","hooks_url":"https://api.github.com/repos/fac-13/stackMatch/hooks","issue_events_url":"https://api.github.com/repos/fac-13/stackMatch/issues/events{/number}","events_url":"https://api.github.com/repos/fac-13/stackMatch/events","assignees_url":"https://api.github.com/repos/fac-13/stackMatch/assignees{/user}","branches_url":"https://api.github.com/repos/fac-13/stackMatch/branches{/branch}","tags_url":"https://api.github.com/repos/fac-13/stackMatch/tags","blobs_url":"https://api.github.com/repos/fac-13/stackMatch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fac-13/stackMatch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fac-13/stackMatch/git/refs{/sha}","trees_url":"https://api.github.com/repos/fac-13/stackMatch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fac-13/stackMatch/statuses/{sha}","languages_url":"https://api.github.com/repos/fac-13/stackMatch/languages","stargazers_url":"https://api.github.com/repos/fac-13/stackMatch/stargazers","contributors_url":"https://api.github.com/repos/fac-13/stackMatch/contributors","subscribers_url":"https://api.github.com/repos/fac-13/stackMatch/subscribers","subscription_url":"https://api.github.com/repos/fac-13/stackMatch/subscription","commits_url":"https://api.github.com/repos/fac-13/stackMatch/commits{/sha}","git_commits_url":"https://api.github.com/repos/fac-13/stackMatch/git/commits{/sha}","comments_url":"https://api.github.com/repos/fac-13/stackMatch/comments{/number}","issue_comment_url":"https://api.github.com/repos/fac-13/stackMatch/issues/comments{/number}","contents_url":"https://api.github.com/repos/fac-13/stackMatch/contents/{+path}","compare_url":"https://api.github.com/repos/fac-13/stackMatch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fac-13/stackMatch/merges","archive_url":"https://api.github.com/repos/fac-13/stackMatch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fac-13/stackMatch/downloads","issues_url":"https://api.github.com/repos/fac-13/stackMatch/issues{/number}","pulls_url":"https://api.github.com/repos/fac-13/stackMatch/pulls{/number}","milestones_url":"https://api.github.com/repos/fac-13/stackMatch/milestones{/number}","notifications_url":"https://api.github.com/repos/fac-13/stackMatch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fac-13/stackMatch/labels{/name}","releases_url":"https://api.github.com/repos/fac-13/stackMatch/releases{/id}","deployments_url":"https://api.github.com/repos/fac-13/stackMatch/deployments","created_at":"2018-05-03T18:06:43Z","updated_at":"2018-05-09T12:02:41Z","pushed_at":"2018-05-09T15:38:23Z","git_url":"git://github.com/fac-13/stackMatch.git","ssh_url":"git@github.com:fac-13/stackMatch.git","clone_url":"https://github.com/fac-13/stackMatch.git","svn_url":"https://github.com/fac-13/stackMatch","homepage":"","size":247,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":38,"license":null,"forks":0,"open_issues":38,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fac-13/stackMatch/pulls/51"},"html":{"href":"https://github.com/fac-13/stackMatch/pull/51"},"issue":{"href":"https://api.github.com/repos/fac-13/stackMatch/issues/51"},"comments":{"href":"https://api.github.com/repos/fac-13/stackMatch/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/fac-13/stackMatch/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/fac-13/stackMatch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fac-13/stackMatch/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/fac-13/stackMatch/statuses/79153f7027e8cbb94f727b2c012171255d553561"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"LawEKS"}}