payload: {"action":"created","comment":{"url":"https://api.github.com/repos/andela/blackninjas-backend/pulls/comments/355640590","pull_request_review_id":329164883,"id":355640590,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM1NTY0MDU5MA==","diff_hunk":"@@ -1,14 +1,14 @@\n-'use strict';\n \n const fs = require('fs');\n const path = require('path');\n const Sequelize = require('sequelize');\n+\n const basename = path.basename(__filename);\n const env = process.env.NODE_ENV || 'development';\n-const config = require(__dirname + '/../config/config.js')[env];\n+const config = require(`${__dirname}/../config/config.js`)[env];","path":"src/database/models/index.js","position":10,"original_position":10,"commit_id":"d47bd85f5eafbe34e7f3adb78fa0384e41e8493d","original_commit_id":"d47bd85f5eafbe34e7f3adb78fa0384e41e8493d","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":"'__dirname' is not defined   no-undef<br>'require' is not defined     no-undef","created_at":"2019-12-09T19:30:35Z","updated_at":"2019-12-09T19:30:36Z","html_url":"https://github.com/andela/blackninjas-backend/pull/14#discussion_r355640590","pull_request_url":"https://api.github.com/repos/andela/blackninjas-backend/pulls/14","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/andela/blackninjas-backend/pulls/comments/355640590"},"html":{"href":"https://github.com/andela/blackninjas-backend/pull/14#discussion_r355640590"},"pull_request":{"href":"https://api.github.com/repos/andela/blackninjas-backend/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/andela/blackninjas-backend/pulls/14","id":350685427,"node_id":"MDExOlB1bGxSZXF1ZXN0MzUwNjg1NDI3","html_url":"https://github.com/andela/blackninjas-backend/pull/14","diff_url":"https://github.com/andela/blackninjas-backend/pull/14.diff","patch_url":"https://github.com/andela/blackninjas-backend/pull/14.patch","issue_url":"https://api.github.com/repos/andela/blackninjas-backend/issues/14","number":14,"state":"open","locked":false,"title":"#169817866 : Implement social authentication with Google and Facebook","user":{"login":"jo-rdan","id":51836855,"node_id":"MDQ6VXNlcjUxODM2ODU1","avatar_url":"https://avatars2.githubusercontent.com/u/51836855?v=4","gravatar_id":"","url":"https://api.github.com/users/jo-rdan","html_url":"https://github.com/jo-rdan","followers_url":"https://api.github.com/users/jo-rdan/followers","following_url":"https://api.github.com/users/jo-rdan/following{/other_user}","gists_url":"https://api.github.com/users/jo-rdan/gists{/gist_id}","starred_url":"https://api.github.com/users/jo-rdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jo-rdan/subscriptions","organizations_url":"https://api.github.com/users/jo-rdan/orgs","repos_url":"https://api.github.com/users/jo-rdan/repos","events_url":"https://api.github.com/users/jo-rdan/events{/privacy}","received_events_url":"https://api.github.com/users/jo-rdan/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nIt implements the login with facebook and google \r\n#### Description of Task to be completed?\r\n- implement facebook authentication\r\n- implement google authentication\r\n#### How should this be manually tested?\r\n- clone this repo \r\n- run `npm start`\r\n\r\n**For facebook**\r\n- navigate to `http://localhost:3000/facebook` in postman\r\n- provide the access token you received from facebook in the req.body and hit send\r\nit should return **200** status code \r\n\r\n**For google**\r\n- navigate to `http://localhost:3000/google` in postman\r\n- provide the access token you received from google in the req.body and hit send\r\nit should return **200** status code\r\n#### Any background context you want to provide?\r\n- N/A\r\n#### What are the relevant pivotal tracker stories?\r\n[#169817866](https://www.pivotaltracker.com/story/show/169817866)\r\n#### Screenshots (if appropriate)\r\n**Facebook**\r\n![image](https://user-images.githubusercontent.com/51836855/70435278-1862e000-1a8f-11ea-8b6c-a02d67767f0b.png)\r\n\r\n**Google**\r\n![image](https://user-images.githubusercontent.com/51836855/70435303-2fa1cd80-1a8f-11ea-9488-c4d3ccdf2439.png)\r\n\r\n**Database**\r\n![image](https://user-images.githubusercontent.com/51836855/70435373-59f38b00-1a8f-11ea-88da-1f5f8fbe28fc.png)\r\n","created_at":"2019-12-09T12:23:07Z","updated_at":"2019-12-09T19:30:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b33dc600aa4a4ffac9b90b0dcab81eb9f4161363","assignee":{"login":"jo-rdan","id":51836855,"node_id":"MDQ6VXNlcjUxODM2ODU1","avatar_url":"https://avatars2.githubusercontent.com/u/51836855?v=4","gravatar_id":"","url":"https://api.github.com/users/jo-rdan","html_url":"https://github.com/jo-rdan","followers_url":"https://api.github.com/users/jo-rdan/followers","following_url":"https://api.github.com/users/jo-rdan/following{/other_user}","gists_url":"https://api.github.com/users/jo-rdan/gists{/gist_id}","starred_url":"https://api.github.com/users/jo-rdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jo-rdan/subscriptions","organizations_url":"https://api.github.com/users/jo-rdan/orgs","repos_url":"https://api.github.com/users/jo-rdan/repos","events_url":"https://api.github.com/users/jo-rdan/events{/privacy}","received_events_url":"https://api.github.com/users/jo-rdan/received_events","type":"User","site_admin":false},"assignees":[{"login":"jo-rdan","id":51836855,"node_id":"MDQ6VXNlcjUxODM2ODU1","avatar_url":"https://avatars2.githubusercontent.com/u/51836855?v=4","gravatar_id":"","url":"https://api.github.com/users/jo-rdan","html_url":"https://github.com/jo-rdan","followers_url":"https://api.github.com/users/jo-rdan/followers","following_url":"https://api.github.com/users/jo-rdan/following{/other_user}","gists_url":"https://api.github.com/users/jo-rdan/gists{/gist_id}","starred_url":"https://api.github.com/users/jo-rdan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jo-rdan/subscriptions","organizations_url":"https://api.github.com/users/jo-rdan/orgs","repos_url":"https://api.github.com/users/jo-rdan/repos","events_url":"https://api.github.com/users/jo-rdan/events{/privacy}","received_events_url":"https://api.github.com/users/jo-rdan/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1704883415,"node_id":"MDU6TGFiZWwxNzA0ODgzNDE1","url":"https://api.github.com/repos/andela/blackninjas-backend/labels/WIP","name":"WIP","color":"8c99ea","default":false,"description":""}],"milestone":null,"commits_url":"https://api.github.com/repos/andela/blackninjas-backend/pulls/14/commits","review_comments_url":"https://api.github.com/repos/andela/blackninjas-backend/pulls/14/comments","review_comment_url":"https://api.github.com/repos/andela/blackninjas-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/blackninjas-backend/issues/14/comments","statuses_url":"https://api.github.com/repos/andela/blackninjas-backend/statuses/d47bd85f5eafbe34e7f3adb78fa0384e41e8493d","head":{"label":"andela:ft/169817866/social-auth","ref":"ft/169817866/social-auth","sha":"d47bd85f5eafbe34e7f3adb78fa0384e41e8493d","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":222541860,"node_id":"MDEwOlJlcG9zaXRvcnkyMjI1NDE4NjA=","name":"blackninjas-backend","full_name":"andela/blackninjas-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/blackninjas-backend","description":null,"fork":false,"url":"https://api.github.com/repos/andela/blackninjas-backend","forks_url":"https://api.github.com/repos/andela/blackninjas-backend/forks","keys_url":"https://api.github.com/repos/andela/blackninjas-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/blackninjas-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/blackninjas-backend/teams","hooks_url":"https://api.github.com/repos/andela/blackninjas-backend/hooks","issue_events_url":"https://api.github.com/repos/andela/blackninjas-backend/issues/events{/number}","events_url":"https://api.github.com/repos/andela/blackninjas-backend/events","assignees_url":"https://api.github.com/repos/andela/blackninjas-backend/assignees{/user}","branches_url":"https://api.github.com/repos/andela/blackninjas-backend/branches{/branch}","tags_url":"https://api.github.com/repos/andela/blackninjas-backend/tags","blobs_url":"https://api.github.com/repos/andela/blackninjas-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/blackninjas-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/blackninjas-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/blackninjas-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/blackninjas-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/blackninjas-backend/languages","stargazers_url":"https://api.github.com/repos/andela/blackninjas-backend/stargazers","contributors_url":"https://api.github.com/repos/andela/blackninjas-backend/contributors","subscribers_url":"https://api.github.com/repos/andela/blackninjas-backend/subscribers","subscription_url":"https://api.github.com/repos/andela/blackninjas-backend/subscription","commits_url":"https://api.github.com/repos/andela/blackninjas-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/blackninjas-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/blackninjas-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/blackninjas-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/blackninjas-backend/contents/{+path}","compare_url":"https://api.github.com/repos/andela/blackninjas-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/blackninjas-backend/merges","archive_url":"https://api.github.com/repos/andela/blackninjas-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/blackninjas-backend/downloads","issues_url":"https://api.github.com/repos/andela/blackninjas-backend/issues{/number}","pulls_url":"https://api.github.com/repos/andela/blackninjas-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/blackninjas-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/blackninjas-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/blackninjas-backend/labels{/name}","releases_url":"https://api.github.com/repos/andela/blackninjas-backend/releases{/id}","deployments_url":"https://api.github.com/repos/andela/blackninjas-backend/deployments","created_at":"2019-11-18T20:49:26Z","updated_at":"2019-12-09T18:39:30Z","pushed_at":"2019-12-09T19:30:25Z","git_url":"git://github.com/andela/blackninjas-backend.git","ssh_url":"git@github.com:andela/blackninjas-backend.git","clone_url":"https://github.com/andela/blackninjas-backend.git","svn_url":"https://github.com/andela/blackninjas-backend","homepage":null,"size":325,"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,"archived":false,"disabled":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"6bfe1e3de56fd75b58723ccf50d4376ec385189b","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":222541860,"node_id":"MDEwOlJlcG9zaXRvcnkyMjI1NDE4NjA=","name":"blackninjas-backend","full_name":"andela/blackninjas-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/blackninjas-backend","description":null,"fork":false,"url":"https://api.github.com/repos/andela/blackninjas-backend","forks_url":"https://api.github.com/repos/andela/blackninjas-backend/forks","keys_url":"https://api.github.com/repos/andela/blackninjas-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/blackninjas-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/blackninjas-backend/teams","hooks_url":"https://api.github.com/repos/andela/blackninjas-backend/hooks","issue_events_url":"https://api.github.com/repos/andela/blackninjas-backend/issues/events{/number}","events_url":"https://api.github.com/repos/andela/blackninjas-backend/events","assignees_url":"https://api.github.com/repos/andela/blackninjas-backend/assignees{/user}","branches_url":"https://api.github.com/repos/andela/blackninjas-backend/branches{/branch}","tags_url":"https://api.github.com/repos/andela/blackninjas-backend/tags","blobs_url":"https://api.github.com/repos/andela/blackninjas-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/blackninjas-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/blackninjas-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/blackninjas-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/blackninjas-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/blackninjas-backend/languages","stargazers_url":"https://api.github.com/repos/andela/blackninjas-backend/stargazers","contributors_url":"https://api.github.com/repos/andela/blackninjas-backend/contributors","subscribers_url":"https://api.github.com/repos/andela/blackninjas-backend/subscribers","subscription_url":"https://api.github.com/repos/andela/blackninjas-backend/subscription","commits_url":"https://api.github.com/repos/andela/blackninjas-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/blackninjas-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/blackninjas-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/blackninjas-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/blackninjas-backend/contents/{+path}","compare_url":"https://api.github.com/repos/andela/blackninjas-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/blackninjas-backend/merges","archive_url":"https://api.github.com/repos/andela/blackninjas-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/blackninjas-backend/downloads","issues_url":"https://api.github.com/repos/andela/blackninjas-backend/issues{/number}","pulls_url":"https://api.github.com/repos/andela/blackninjas-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/blackninjas-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/blackninjas-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/blackninjas-backend/labels{/name}","releases_url":"https://api.github.com/repos/andela/blackninjas-backend/releases{/id}","deployments_url":"https://api.github.com/repos/andela/blackninjas-backend/deployments","created_at":"2019-11-18T20:49:26Z","updated_at":"2019-12-09T18:39:30Z","pushed_at":"2019-12-09T19:30:25Z","git_url":"git://github.com/andela/blackninjas-backend.git","ssh_url":"git@github.com:andela/blackninjas-backend.git","clone_url":"https://github.com/andela/blackninjas-backend.git","svn_url":"https://github.com/andela/blackninjas-backend","homepage":null,"size":325,"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,"archived":false,"disabled":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/blackninjas-backend/pulls/14"},"html":{"href":"https://github.com/andela/blackninjas-backend/pull/14"},"issue":{"href":"https://api.github.com/repos/andela/blackninjas-backend/issues/14"},"comments":{"href":"https://api.github.com/repos/andela/blackninjas-backend/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/blackninjas-backend/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/blackninjas-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/blackninjas-backend/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/andela/blackninjas-backend/statuses/d47bd85f5eafbe34e7f3adb78fa0384e41e8493d"}},"author_association":"COLLABORATOR"}}
other: {"actor":{"display_login":"hound"}}