{"action":"opened","number":50,"pull_request":{"url":"https://api.github.com/repos/rkusa/koa-passport/pulls/50","id":62320771,"html_url":"https://github.com/rkusa/koa-passport/pull/50","diff_url":"https://github.com/rkusa/koa-passport/pull/50.diff","patch_url":"https://github.com/rkusa/koa-passport/pull/50.patch","issue_url":"https://api.github.com/repos/rkusa/koa-passport/issues/50","number":50,"state":"open","locked":false,"title":"Export the KoaPassport constructor","user":{"login":"lumberj","id":1812196,"avatar_url":"https://avatars.githubusercontent.com/u/1812196?v=3","gravatar_id":"","url":"https://api.github.com/users/lumberj","html_url":"https://github.com/lumberj","followers_url":"https://api.github.com/users/lumberj/followers","following_url":"https://api.github.com/users/lumberj/following{/other_user}","gists_url":"https://api.github.com/users/lumberj/gists{/gist_id}","starred_url":"https://api.github.com/users/lumberj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lumberj/subscriptions","organizations_url":"https://api.github.com/users/lumberj/orgs","repos_url":"https://api.github.com/users/lumberj/repos","events_url":"https://api.github.com/users/lumberj/events{/privacy}","received_events_url":"https://api.github.com/users/lumberj/received_events","type":"User","site_admin":false},"body":"This allows apps to avoid using a Passport singleton\r\nThe same pattern is followed in the Passport repo.\r\nhttps://github.com/jaredhanson/passport/blob/33075756a626999c6e2efc872b055e45ae434053/lib/index.js#L18","created_at":"2016-03-10T00:30:32Z","updated_at":"2016-03-10T00:30:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rkusa/koa-passport/pulls/50/commits","review_comments_url":"https://api.github.com/repos/rkusa/koa-passport/pulls/50/comments","review_comment_url":"https://api.github.com/repos/rkusa/koa-passport/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rkusa/koa-passport/issues/50/comments","statuses_url":"https://api.github.com/repos/rkusa/koa-passport/statuses/72cae5f684a7a76ac7bd8e981418e0cad6f61463","head":{"label":"lumberj:export-constructor","ref":"export-constructor","sha":"72cae5f684a7a76ac7bd8e981418e0cad6f61463","user":{"login":"lumberj","id":1812196,"avatar_url":"https://avatars.githubusercontent.com/u/1812196?v=3","gravatar_id":"","url":"https://api.github.com/users/lumberj","html_url":"https://github.com/lumberj","followers_url":"https://api.github.com/users/lumberj/followers","following_url":"https://api.github.com/users/lumberj/following{/other_user}","gists_url":"https://api.github.com/users/lumberj/gists{/gist_id}","starred_url":"https://api.github.com/users/lumberj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lumberj/subscriptions","organizations_url":"https://api.github.com/users/lumberj/orgs","repos_url":"https://api.github.com/users/lumberj/repos","events_url":"https://api.github.com/users/lumberj/events{/privacy}","received_events_url":"https://api.github.com/users/lumberj/received_events","type":"User","site_admin":false},"repo":{"id":53541644,"name":"koa-passport","full_name":"lumberj/koa-passport","owner":{"login":"lumberj","id":1812196,"avatar_url":"https://avatars.githubusercontent.com/u/1812196?v=3","gravatar_id":"","url":"https://api.github.com/users/lumberj","html_url":"https://github.com/lumberj","followers_url":"https://api.github.com/users/lumberj/followers","following_url":"https://api.github.com/users/lumberj/following{/other_user}","gists_url":"https://api.github.com/users/lumberj/gists{/gist_id}","starred_url":"https://api.github.com/users/lumberj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lumberj/subscriptions","organizations_url":"https://api.github.com/users/lumberj/orgs","repos_url":"https://api.github.com/users/lumberj/repos","events_url":"https://api.github.com/users/lumberj/events{/privacy}","received_events_url":"https://api.github.com/users/lumberj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lumberj/koa-passport","description":"Passport middleware for Koa","fork":true,"url":"https://api.github.com/repos/lumberj/koa-passport","forks_url":"https://api.github.com/repos/lumberj/koa-passport/forks","keys_url":"https://api.github.com/repos/lumberj/koa-passport/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lumberj/koa-passport/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lumberj/koa-passport/teams","hooks_url":"https://api.github.com/repos/lumberj/koa-passport/hooks","issue_events_url":"https://api.github.com/repos/lumberj/koa-passport/issues/events{/number}","events_url":"https://api.github.com/repos/lumberj/koa-passport/events","assignees_url":"https://api.github.com/repos/lumberj/koa-passport/assignees{/user}","branches_url":"https://api.github.com/repos/lumberj/koa-passport/branches{/branch}","tags_url":"https://api.github.com/repos/lumberj/koa-passport/tags","blobs_url":"https://api.github.com/repos/lumberj/koa-passport/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lumberj/koa-passport/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lumberj/koa-passport/git/refs{/sha}","trees_url":"https://api.github.com/repos/lumberj/koa-passport/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lumberj/koa-passport/statuses/{sha}","languages_url":"https://api.github.com/repos/lumberj/koa-passport/languages","stargazers_url":"https://api.github.com/repos/lumberj/koa-passport/stargazers","contributors_url":"https://api.github.com/repos/lumberj/koa-passport/contributors","subscribers_url":"https://api.github.com/repos/lumberj/koa-passport/subscribers","subscription_url":"https://api.github.com/repos/lumberj/koa-passport/subscription","commits_url":"https://api.github.com/repos/lumberj/koa-passport/commits{/sha}","git_commits_url":"https://api.github.com/repos/lumberj/koa-passport/git/commits{/sha}","comments_url":"https://api.github.com/repos/lumberj/koa-passport/comments{/number}","issue_comment_url":"https://api.github.com/repos/lumberj/koa-passport/issues/comments{/number}","contents_url":"https://api.github.com/repos/lumberj/koa-passport/contents/{+path}","compare_url":"https://api.github.com/repos/lumberj/koa-passport/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lumberj/koa-passport/merges","archive_url":"https://api.github.com/repos/lumberj/koa-passport/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lumberj/koa-passport/downloads","issues_url":"https://api.github.com/repos/lumberj/koa-passport/issues{/number}","pulls_url":"https://api.github.com/repos/lumberj/koa-passport/pulls{/number}","milestones_url":"https://api.github.com/repos/lumberj/koa-passport/milestones{/number}","notifications_url":"https://api.github.com/repos/lumberj/koa-passport/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lumberj/koa-passport/labels{/name}","releases_url":"https://api.github.com/repos/lumberj/koa-passport/releases{/id}","deployments_url":"https://api.github.com/repos/lumberj/koa-passport/deployments","created_at":"2016-03-10T00:16:38Z","updated_at":"2016-03-10T00:16:39Z","pushed_at":"2016-03-10T00:30:08Z","git_url":"git://github.com/lumberj/koa-passport.git","ssh_url":"git@github.com:lumberj/koa-passport.git","clone_url":"https://github.com/lumberj/koa-passport.git","svn_url":"https://github.com/lumberj/koa-passport","homepage":"","size":62,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"rkusa:master","ref":"master","sha":"2972d9ef1e31c24afaca3ff0626d1733990b51ab","user":{"login":"rkusa","id":409021,"avatar_url":"https://avatars.githubusercontent.com/u/409021?v=3","gravatar_id":"","url":"https://api.github.com/users/rkusa","html_url":"https://github.com/rkusa","followers_url":"https://api.github.com/users/rkusa/followers","following_url":"https://api.github.com/users/rkusa/following{/other_user}","gists_url":"https://api.github.com/users/rkusa/gists{/gist_id}","starred_url":"https://api.github.com/users/rkusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkusa/subscriptions","organizations_url":"https://api.github.com/users/rkusa/orgs","repos_url":"https://api.github.com/users/rkusa/repos","events_url":"https://api.github.com/users/rkusa/events{/privacy}","received_events_url":"https://api.github.com/users/rkusa/received_events","type":"User","site_admin":false},"repo":{"id":15921481,"name":"koa-passport","full_name":"rkusa/koa-passport","owner":{"login":"rkusa","id":409021,"avatar_url":"https://avatars.githubusercontent.com/u/409021?v=3","gravatar_id":"","url":"https://api.github.com/users/rkusa","html_url":"https://github.com/rkusa","followers_url":"https://api.github.com/users/rkusa/followers","following_url":"https://api.github.com/users/rkusa/following{/other_user}","gists_url":"https://api.github.com/users/rkusa/gists{/gist_id}","starred_url":"https://api.github.com/users/rkusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkusa/subscriptions","organizations_url":"https://api.github.com/users/rkusa/orgs","repos_url":"https://api.github.com/users/rkusa/repos","events_url":"https://api.github.com/users/rkusa/events{/privacy}","received_events_url":"https://api.github.com/users/rkusa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rkusa/koa-passport","description":"Passport middleware for Koa","fork":false,"url":"https://api.github.com/repos/rkusa/koa-passport","forks_url":"https://api.github.com/repos/rkusa/koa-passport/forks","keys_url":"https://api.github.com/repos/rkusa/koa-passport/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rkusa/koa-passport/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rkusa/koa-passport/teams","hooks_url":"https://api.github.com/repos/rkusa/koa-passport/hooks","issue_events_url":"https://api.github.com/repos/rkusa/koa-passport/issues/events{/number}","events_url":"https://api.github.com/repos/rkusa/koa-passport/events","assignees_url":"https://api.github.com/repos/rkusa/koa-passport/assignees{/user}","branches_url":"https://api.github.com/repos/rkusa/koa-passport/branches{/branch}","tags_url":"https://api.github.com/repos/rkusa/koa-passport/tags","blobs_url":"https://api.github.com/repos/rkusa/koa-passport/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rkusa/koa-passport/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rkusa/koa-passport/git/refs{/sha}","trees_url":"https://api.github.com/repos/rkusa/koa-passport/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rkusa/koa-passport/statuses/{sha}","languages_url":"https://api.github.com/repos/rkusa/koa-passport/languages","stargazers_url":"https://api.github.com/repos/rkusa/koa-passport/stargazers","contributors_url":"https://api.github.com/repos/rkusa/koa-passport/contributors","subscribers_url":"https://api.github.com/repos/rkusa/koa-passport/subscribers","subscription_url":"https://api.github.com/repos/rkusa/koa-passport/subscription","commits_url":"https://api.github.com/repos/rkusa/koa-passport/commits{/sha}","git_commits_url":"https://api.github.com/repos/rkusa/koa-passport/git/commits{/sha}","comments_url":"https://api.github.com/repos/rkusa/koa-passport/comments{/number}","issue_comment_url":"https://api.github.com/repos/rkusa/koa-passport/issues/comments{/number}","contents_url":"https://api.github.com/repos/rkusa/koa-passport/contents/{+path}","compare_url":"https://api.github.com/repos/rkusa/koa-passport/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rkusa/koa-passport/merges","archive_url":"https://api.github.com/repos/rkusa/koa-passport/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rkusa/koa-passport/downloads","issues_url":"https://api.github.com/repos/rkusa/koa-passport/issues{/number}","pulls_url":"https://api.github.com/repos/rkusa/koa-passport/pulls{/number}","milestones_url":"https://api.github.com/repos/rkusa/koa-passport/milestones{/number}","notifications_url":"https://api.github.com/repos/rkusa/koa-passport/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rkusa/koa-passport/labels{/name}","releases_url":"https://api.github.com/repos/rkusa/koa-passport/releases{/id}","deployments_url":"https://api.github.com/repos/rkusa/koa-passport/deployments","created_at":"2014-01-15T01:33:36Z","updated_at":"2016-03-05T06:44:11Z","pushed_at":"2016-03-04T03:35:46Z","git_url":"git://github.com/rkusa/koa-passport.git","ssh_url":"git@github.com:rkusa/koa-passport.git","clone_url":"https://github.com/rkusa/koa-passport.git","svn_url":"https://github.com/rkusa/koa-passport","homepage":"","size":62,"stargazers_count":193,"watchers_count":193,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":2,"forks":21,"open_issues":2,"watchers":193,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rkusa/koa-passport/pulls/50"},"html":{"href":"https://github.com/rkusa/koa-passport/pull/50"},"issue":{"href":"https://api.github.com/repos/rkusa/koa-passport/issues/50"},"comments":{"href":"https://api.github.com/repos/rkusa/koa-passport/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/rkusa/koa-passport/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/rkusa/koa-passport/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rkusa/koa-passport/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/rkusa/koa-passport/statuses/72cae5f684a7a76ac7bd8e981418e0cad6f61463"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":16,"deletions":2,"changed_files":1}}