{"action":"created","comment":{"url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/pulls/comments/129976343","pull_request_review_id":52805526,"id":129976343,"diff_hunk":"@@ -0,0 +1,107 @@\n+import { rslError } from '../utils'\n+\n+const GITHUB_API = 'https://api.github.com/graphql'\n+\n+let githubAppId\n+\n+// Load fetch polyfill for browsers not supporting fetch API\n+if (!window.fetch) {\n+  require('whatwg-fetch')\n+}\n+\n+/**\n+ * Fake Github SDK loading (needed to trick RSL into thinking its loaded).\n+ * @param {string} appId\n+ */\n+const load = (appId) => new Promise((resolve, reject) => {\n+  if (!appId) {\n+    return reject(rslError({\n+      provider: 'github',\n+      type: 'load',\n+      description: 'Cannot load SDK without appId',\n+      error: null\n+    }))\n+  }\n+\n+  githubAppId = appId\n+\n+  return resolve()\n+})\n+\n+/**\n+ * Checks if user is logged in to app through LinkedIn.","path":"src/sdk/github.js","position":32,"original_position":32,"commit_id":"97d7775b8f9d6f6af6604195b56b53ec955246ba","original_commit_id":"97d7775b8f9d6f6af6604195b56b53ec955246ba","user":{"login":"carldunham","id":703863,"avatar_url":"https://avatars3.githubusercontent.com/u/703863?v=4","gravatar_id":"","url":"https://api.github.com/users/carldunham","html_url":"https://github.com/carldunham","followers_url":"https://api.github.com/users/carldunham/followers","following_url":"https://api.github.com/users/carldunham/following{/other_user}","gists_url":"https://api.github.com/users/carldunham/gists{/gist_id}","starred_url":"https://api.github.com/users/carldunham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carldunham/subscriptions","organizations_url":"https://api.github.com/users/carldunham/orgs","repos_url":"https://api.github.com/users/carldunham/repos","events_url":"https://api.github.com/users/carldunham/events{/privacy}","received_events_url":"https://api.github.com/users/carldunham/received_events","type":"User","site_admin":false},"body":"s/LinkedIn/GitHub 😸 ","created_at":"2017-07-27T22:38:40Z","updated_at":"2017-07-27T22:38:40Z","html_url":"https://github.com/deepakaggarwal7/react-social-login/pull/19#discussion_r129976343","pull_request_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/deepakaggarwal7/react-social-login/pulls/comments/129976343"},"html":{"href":"https://github.com/deepakaggarwal7/react-social-login/pull/19#discussion_r129976343"},"pull_request":{"href":"https://api.github.com/repos/deepakaggarwal7/react-social-login/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/pulls/19","id":131933225,"html_url":"https://github.com/deepakaggarwal7/react-social-login/pull/19","diff_url":"https://github.com/deepakaggarwal7/react-social-login/pull/19.diff","patch_url":"https://github.com/deepakaggarwal7/react-social-login/pull/19.patch","issue_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/issues/19","number":19,"state":"open","locked":false,"title":"v3.0.0 update!","user":{"login":"nicolas-goudry","id":8753998,"avatar_url":"https://avatars1.githubusercontent.com/u/8753998?v=4","gravatar_id":"","url":"https://api.github.com/users/nicolas-goudry","html_url":"https://github.com/nicolas-goudry","followers_url":"https://api.github.com/users/nicolas-goudry/followers","following_url":"https://api.github.com/users/nicolas-goudry/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-goudry/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-goudry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-goudry/subscriptions","organizations_url":"https://api.github.com/users/nicolas-goudry/orgs","repos_url":"https://api.github.com/users/nicolas-goudry/repos","events_url":"https://api.github.com/users/nicolas-goudry/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-goudry/received_events","type":"User","site_admin":false},"body":"Okay, here is the v3.0.0 update!\r\n\r\n**Featuring `HOC_transform`:** (see issue #9)\r\n\r\n* SocialLogin has been fully rewritten and is now an HOC\r\n* SocialUser has been simplified and is now in a separate file (better version control)\r\n* Loaders are now SDKs as they handle login process triggering and any action related to SDK\r\n* Kept old component version as a fallback (named export `OldSocialLogin`)\r\n* Updated demo and added demo for old component version\r\n* Updated README (you’ll love it :wink:)\r\n\r\n**Featuring new providers:**\r\n\r\n* Instagram support (see issue #10)\r\n* GitHub support (see issue #18) **ONLY SUPPORTING BASIC AUTH VIA PERSONAL TOKENS**\r\n\r\n**Featuring new features:**\r\n\r\n* Auto login\r\n* Auto URI cleaning after OAuth callback mess\r\n* User choose how and when to trigger login process (see issue #16)\r\n* Better error handling (I think :joy:)\r\n\r\n**Featuring fixes:**\r\n\r\n* Fix Facebook generateUser function (login was always failing)\r\n* Fix Facebook missing email (not asked in login scope)\r\n* Fix LinkedIn missing access token (see issue #12)","created_at":"2017-07-23T12:47:28Z","updated_at":"2017-07-27T22:38:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4fa9b7c797ff02afa955258f1e8a2af0599606dd","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/pulls/19/commits","review_comments_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/pulls/19/comments","review_comment_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/pulls/comments{/number}","comments_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/issues/19/comments","statuses_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/statuses/97d7775b8f9d6f6af6604195b56b53ec955246ba","head":{"label":"nicolas-goudry:v3/HOC+Instagram+GitHub","ref":"v3/HOC+Instagram+GitHub","sha":"97d7775b8f9d6f6af6604195b56b53ec955246ba","user":{"login":"nicolas-goudry","id":8753998,"avatar_url":"https://avatars1.githubusercontent.com/u/8753998?v=4","gravatar_id":"","url":"https://api.github.com/users/nicolas-goudry","html_url":"https://github.com/nicolas-goudry","followers_url":"https://api.github.com/users/nicolas-goudry/followers","following_url":"https://api.github.com/users/nicolas-goudry/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-goudry/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-goudry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-goudry/subscriptions","organizations_url":"https://api.github.com/users/nicolas-goudry/orgs","repos_url":"https://api.github.com/users/nicolas-goudry/repos","events_url":"https://api.github.com/users/nicolas-goudry/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-goudry/received_events","type":"User","site_admin":false},"repo":{"id":80946377,"name":"react-social-login","full_name":"nicolas-goudry/react-social-login","owner":{"login":"nicolas-goudry","id":8753998,"avatar_url":"https://avatars1.githubusercontent.com/u/8753998?v=4","gravatar_id":"","url":"https://api.github.com/users/nicolas-goudry","html_url":"https://github.com/nicolas-goudry","followers_url":"https://api.github.com/users/nicolas-goudry/followers","following_url":"https://api.github.com/users/nicolas-goudry/following{/other_user}","gists_url":"https://api.github.com/users/nicolas-goudry/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolas-goudry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolas-goudry/subscriptions","organizations_url":"https://api.github.com/users/nicolas-goudry/orgs","repos_url":"https://api.github.com/users/nicolas-goudry/repos","events_url":"https://api.github.com/users/nicolas-goudry/events{/privacy}","received_events_url":"https://api.github.com/users/nicolas-goudry/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nicolas-goudry/react-social-login","description":null,"fork":true,"url":"https://api.github.com/repos/nicolas-goudry/react-social-login","forks_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/forks","keys_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/teams","hooks_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/hooks","issue_events_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/issues/events{/number}","events_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/events","assignees_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/assignees{/user}","branches_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/branches{/branch}","tags_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/tags","blobs_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/statuses/{sha}","languages_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/languages","stargazers_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/stargazers","contributors_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/contributors","subscribers_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/subscribers","subscription_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/subscription","commits_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/contents/{+path}","compare_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/merges","archive_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/downloads","issues_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/issues{/number}","pulls_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/pulls{/number}","milestones_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/milestones{/number}","notifications_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/labels{/name}","releases_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/releases{/id}","deployments_url":"https://api.github.com/repos/nicolas-goudry/react-social-login/deployments","created_at":"2017-02-04T20:28:37Z","updated_at":"2017-02-04T20:28:38Z","pushed_at":"2017-07-27T22:13:50Z","git_url":"git://github.com/nicolas-goudry/react-social-login.git","ssh_url":"git@github.com:nicolas-goudry/react-social-login.git","clone_url":"https://github.com/nicolas-goudry/react-social-login.git","svn_url":"https://github.com/nicolas-goudry/react-social-login","homepage":null,"size":320,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"deepakaggarwal7:master","ref":"master","sha":"35584f2423810ca341c45f45cae7d5ca8afb9e22","user":{"login":"deepakaggarwal7","id":19525740,"avatar_url":"https://avatars0.githubusercontent.com/u/19525740?v=4","gravatar_id":"","url":"https://api.github.com/users/deepakaggarwal7","html_url":"https://github.com/deepakaggarwal7","followers_url":"https://api.github.com/users/deepakaggarwal7/followers","following_url":"https://api.github.com/users/deepakaggarwal7/following{/other_user}","gists_url":"https://api.github.com/users/deepakaggarwal7/gists{/gist_id}","starred_url":"https://api.github.com/users/deepakaggarwal7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepakaggarwal7/subscriptions","organizations_url":"https://api.github.com/users/deepakaggarwal7/orgs","repos_url":"https://api.github.com/users/deepakaggarwal7/repos","events_url":"https://api.github.com/users/deepakaggarwal7/events{/privacy}","received_events_url":"https://api.github.com/users/deepakaggarwal7/received_events","type":"User","site_admin":false},"repo":{"id":62491399,"name":"react-social-login","full_name":"deepakaggarwal7/react-social-login","owner":{"login":"deepakaggarwal7","id":19525740,"avatar_url":"https://avatars0.githubusercontent.com/u/19525740?v=4","gravatar_id":"","url":"https://api.github.com/users/deepakaggarwal7","html_url":"https://github.com/deepakaggarwal7","followers_url":"https://api.github.com/users/deepakaggarwal7/followers","following_url":"https://api.github.com/users/deepakaggarwal7/following{/other_user}","gists_url":"https://api.github.com/users/deepakaggarwal7/gists{/gist_id}","starred_url":"https://api.github.com/users/deepakaggarwal7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepakaggarwal7/subscriptions","organizations_url":"https://api.github.com/users/deepakaggarwal7/orgs","repos_url":"https://api.github.com/users/deepakaggarwal7/repos","events_url":"https://api.github.com/users/deepakaggarwal7/events{/privacy}","received_events_url":"https://api.github.com/users/deepakaggarwal7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/deepakaggarwal7/react-social-login","description":null,"fork":false,"url":"https://api.github.com/repos/deepakaggarwal7/react-social-login","forks_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/forks","keys_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/teams","hooks_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/hooks","issue_events_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/issues/events{/number}","events_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/events","assignees_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/assignees{/user}","branches_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/branches{/branch}","tags_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/tags","blobs_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/git/refs{/sha}","trees_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/statuses/{sha}","languages_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/languages","stargazers_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/stargazers","contributors_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/contributors","subscribers_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/subscribers","subscription_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/subscription","commits_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/commits{/sha}","git_commits_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/git/commits{/sha}","comments_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/comments{/number}","issue_comment_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/issues/comments{/number}","contents_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/contents/{+path}","compare_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/merges","archive_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/downloads","issues_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/issues{/number}","pulls_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/pulls{/number}","milestones_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/milestones{/number}","notifications_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/labels{/name}","releases_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/releases{/id}","deployments_url":"https://api.github.com/repos/deepakaggarwal7/react-social-login/deployments","created_at":"2016-07-03T10:18:13Z","updated_at":"2017-07-07T20:26:15Z","pushed_at":"2017-07-27T22:13:51Z","git_url":"git://github.com/deepakaggarwal7/react-social-login.git","ssh_url":"git@github.com:deepakaggarwal7/react-social-login.git","clone_url":"https://github.com/deepakaggarwal7/react-social-login.git","svn_url":"https://github.com/deepakaggarwal7/react-social-login","homepage":null,"size":191,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":5,"forks":10,"open_issues":5,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/deepakaggarwal7/react-social-login/pulls/19"},"html":{"href":"https://github.com/deepakaggarwal7/react-social-login/pull/19"},"issue":{"href":"https://api.github.com/repos/deepakaggarwal7/react-social-login/issues/19"},"comments":{"href":"https://api.github.com/repos/deepakaggarwal7/react-social-login/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/deepakaggarwal7/react-social-login/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/deepakaggarwal7/react-social-login/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/deepakaggarwal7/react-social-login/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/deepakaggarwal7/react-social-login/statuses/97d7775b8f9d6f6af6604195b56b53ec955246ba"}}}}
{"actor":{"display_login":"carldunham"}}