{"action":"opened","number":31,"pull_request":{"url":"https://api.github.com/repos/stiang/koa-jwt/pulls/31","id":53852439,"html_url":"https://github.com/stiang/koa-jwt/pull/31","diff_url":"https://github.com/stiang/koa-jwt/pull/31.diff","patch_url":"https://github.com/stiang/koa-jwt/pull/31.patch","issue_url":"https://api.github.com/repos/stiang/koa-jwt/issues/31","number":31,"state":"open","locked":false,"title":"Passthrough can be RegExp as well as boolean, Cookie auth falls back to Header, better error msg","user":{"login":"sc0ttyd","id":323439,"avatar_url":"https://avatars.githubusercontent.com/u/323439?v=3","gravatar_id":"","url":"https://api.github.com/users/sc0ttyd","html_url":"https://github.com/sc0ttyd","followers_url":"https://api.github.com/users/sc0ttyd/followers","following_url":"https://api.github.com/users/sc0ttyd/following{/other_user}","gists_url":"https://api.github.com/users/sc0ttyd/gists{/gist_id}","starred_url":"https://api.github.com/users/sc0ttyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sc0ttyd/subscriptions","organizations_url":"https://api.github.com/users/sc0ttyd/orgs","repos_url":"https://api.github.com/users/sc0ttyd/repos","events_url":"https://api.github.com/users/sc0ttyd/events{/privacy}","received_events_url":"https://api.github.com/users/sc0ttyd/received_events","type":"User","site_admin":false},"body":"Changes:\r\n\r\n* passthrough can now also be a RegExp, which matches against the incoming url. This allows you to only allow passthrough on certain routes, for example so you can have a route that shows login status via JSON.\r\n* Cookie auth now falls back to header authentication if no cookie is present.\r\n* When using opts.cookie, a more specific error message is shown if neither cookie nor Auth Header are present.","created_at":"2015-12-16T15:05:57Z","updated_at":"2015-12-16T15:05:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stiang/koa-jwt/pulls/31/commits","review_comments_url":"https://api.github.com/repos/stiang/koa-jwt/pulls/31/comments","review_comment_url":"https://api.github.com/repos/stiang/koa-jwt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stiang/koa-jwt/issues/31/comments","statuses_url":"https://api.github.com/repos/stiang/koa-jwt/statuses/79a743fa2c5bce6c019a624679902c7ce38e52c9","head":{"label":"sc0ttyd:master","ref":"master","sha":"79a743fa2c5bce6c019a624679902c7ce38e52c9","user":{"login":"sc0ttyd","id":323439,"avatar_url":"https://avatars.githubusercontent.com/u/323439?v=3","gravatar_id":"","url":"https://api.github.com/users/sc0ttyd","html_url":"https://github.com/sc0ttyd","followers_url":"https://api.github.com/users/sc0ttyd/followers","following_url":"https://api.github.com/users/sc0ttyd/following{/other_user}","gists_url":"https://api.github.com/users/sc0ttyd/gists{/gist_id}","starred_url":"https://api.github.com/users/sc0ttyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sc0ttyd/subscriptions","organizations_url":"https://api.github.com/users/sc0ttyd/orgs","repos_url":"https://api.github.com/users/sc0ttyd/repos","events_url":"https://api.github.com/users/sc0ttyd/events{/privacy}","received_events_url":"https://api.github.com/users/sc0ttyd/received_events","type":"User","site_admin":false},"repo":{"id":36764799,"name":"koa-jwt","full_name":"sc0ttyd/koa-jwt","owner":{"login":"sc0ttyd","id":323439,"avatar_url":"https://avatars.githubusercontent.com/u/323439?v=3","gravatar_id":"","url":"https://api.github.com/users/sc0ttyd","html_url":"https://github.com/sc0ttyd","followers_url":"https://api.github.com/users/sc0ttyd/followers","following_url":"https://api.github.com/users/sc0ttyd/following{/other_user}","gists_url":"https://api.github.com/users/sc0ttyd/gists{/gist_id}","starred_url":"https://api.github.com/users/sc0ttyd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sc0ttyd/subscriptions","organizations_url":"https://api.github.com/users/sc0ttyd/orgs","repos_url":"https://api.github.com/users/sc0ttyd/repos","events_url":"https://api.github.com/users/sc0ttyd/events{/privacy}","received_events_url":"https://api.github.com/users/sc0ttyd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sc0ttyd/koa-jwt","description":"Koa middleware for validating JSON Web Tokens","fork":true,"url":"https://api.github.com/repos/sc0ttyd/koa-jwt","forks_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/forks","keys_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/teams","hooks_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/hooks","issue_events_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/issues/events{/number}","events_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/events","assignees_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/assignees{/user}","branches_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/branches{/branch}","tags_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/tags","blobs_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/git/refs{/sha}","trees_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/statuses/{sha}","languages_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/languages","stargazers_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/stargazers","contributors_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/contributors","subscribers_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/subscribers","subscription_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/subscription","commits_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/commits{/sha}","git_commits_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/git/commits{/sha}","comments_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/comments{/number}","issue_comment_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/issues/comments{/number}","contents_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/contents/{+path}","compare_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/merges","archive_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/downloads","issues_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/issues{/number}","pulls_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/pulls{/number}","milestones_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/milestones{/number}","notifications_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/labels{/name}","releases_url":"https://api.github.com/repos/sc0ttyd/koa-jwt/releases{/id}","created_at":"2015-06-02T22:10:33Z","updated_at":"2015-06-02T22:10:34Z","pushed_at":"2015-12-16T15:03:48Z","git_url":"git://github.com/sc0ttyd/koa-jwt.git","ssh_url":"git@github.com:sc0ttyd/koa-jwt.git","clone_url":"https://github.com/sc0ttyd/koa-jwt.git","svn_url":"https://github.com/sc0ttyd/koa-jwt","homepage":null,"size":40,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"stiang:master","ref":"master","sha":"d3b169b85571034a73d0343ca5f5fd0deab0d452","user":{"login":"stiang","id":94665,"avatar_url":"https://avatars.githubusercontent.com/u/94665?v=3","gravatar_id":"","url":"https://api.github.com/users/stiang","html_url":"https://github.com/stiang","followers_url":"https://api.github.com/users/stiang/followers","following_url":"https://api.github.com/users/stiang/following{/other_user}","gists_url":"https://api.github.com/users/stiang/gists{/gist_id}","starred_url":"https://api.github.com/users/stiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stiang/subscriptions","organizations_url":"https://api.github.com/users/stiang/orgs","repos_url":"https://api.github.com/users/stiang/repos","events_url":"https://api.github.com/users/stiang/events{/privacy}","received_events_url":"https://api.github.com/users/stiang/received_events","type":"User","site_admin":false},"repo":{"id":16346957,"name":"koa-jwt","full_name":"stiang/koa-jwt","owner":{"login":"stiang","id":94665,"avatar_url":"https://avatars.githubusercontent.com/u/94665?v=3","gravatar_id":"","url":"https://api.github.com/users/stiang","html_url":"https://github.com/stiang","followers_url":"https://api.github.com/users/stiang/followers","following_url":"https://api.github.com/users/stiang/following{/other_user}","gists_url":"https://api.github.com/users/stiang/gists{/gist_id}","starred_url":"https://api.github.com/users/stiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stiang/subscriptions","organizations_url":"https://api.github.com/users/stiang/orgs","repos_url":"https://api.github.com/users/stiang/repos","events_url":"https://api.github.com/users/stiang/events{/privacy}","received_events_url":"https://api.github.com/users/stiang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stiang/koa-jwt","description":"Koa middleware for validating JSON Web Tokens","fork":false,"url":"https://api.github.com/repos/stiang/koa-jwt","forks_url":"https://api.github.com/repos/stiang/koa-jwt/forks","keys_url":"https://api.github.com/repos/stiang/koa-jwt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stiang/koa-jwt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stiang/koa-jwt/teams","hooks_url":"https://api.github.com/repos/stiang/koa-jwt/hooks","issue_events_url":"https://api.github.com/repos/stiang/koa-jwt/issues/events{/number}","events_url":"https://api.github.com/repos/stiang/koa-jwt/events","assignees_url":"https://api.github.com/repos/stiang/koa-jwt/assignees{/user}","branches_url":"https://api.github.com/repos/stiang/koa-jwt/branches{/branch}","tags_url":"https://api.github.com/repos/stiang/koa-jwt/tags","blobs_url":"https://api.github.com/repos/stiang/koa-jwt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stiang/koa-jwt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stiang/koa-jwt/git/refs{/sha}","trees_url":"https://api.github.com/repos/stiang/koa-jwt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stiang/koa-jwt/statuses/{sha}","languages_url":"https://api.github.com/repos/stiang/koa-jwt/languages","stargazers_url":"https://api.github.com/repos/stiang/koa-jwt/stargazers","contributors_url":"https://api.github.com/repos/stiang/koa-jwt/contributors","subscribers_url":"https://api.github.com/repos/stiang/koa-jwt/subscribers","subscription_url":"https://api.github.com/repos/stiang/koa-jwt/subscription","commits_url":"https://api.github.com/repos/stiang/koa-jwt/commits{/sha}","git_commits_url":"https://api.github.com/repos/stiang/koa-jwt/git/commits{/sha}","comments_url":"https://api.github.com/repos/stiang/koa-jwt/comments{/number}","issue_comment_url":"https://api.github.com/repos/stiang/koa-jwt/issues/comments{/number}","contents_url":"https://api.github.com/repos/stiang/koa-jwt/contents/{+path}","compare_url":"https://api.github.com/repos/stiang/koa-jwt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stiang/koa-jwt/merges","archive_url":"https://api.github.com/repos/stiang/koa-jwt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stiang/koa-jwt/downloads","issues_url":"https://api.github.com/repos/stiang/koa-jwt/issues{/number}","pulls_url":"https://api.github.com/repos/stiang/koa-jwt/pulls{/number}","milestones_url":"https://api.github.com/repos/stiang/koa-jwt/milestones{/number}","notifications_url":"https://api.github.com/repos/stiang/koa-jwt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stiang/koa-jwt/labels{/name}","releases_url":"https://api.github.com/repos/stiang/koa-jwt/releases{/id}","created_at":"2014-01-29T14:24:57Z","updated_at":"2015-12-05T09:24:55Z","pushed_at":"2015-11-05T19:21:44Z","git_url":"git://github.com/stiang/koa-jwt.git","ssh_url":"git@github.com:stiang/koa-jwt.git","clone_url":"https://github.com/stiang/koa-jwt.git","svn_url":"https://github.com/stiang/koa-jwt","homepage":null,"size":420,"stargazers_count":121,"watchers_count":121,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":8,"forks":21,"open_issues":8,"watchers":121,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stiang/koa-jwt/pulls/31"},"html":{"href":"https://github.com/stiang/koa-jwt/pull/31"},"issue":{"href":"https://api.github.com/repos/stiang/koa-jwt/issues/31"},"comments":{"href":"https://api.github.com/repos/stiang/koa-jwt/issues/31/comments"},"review_comments":{"href":"https://api.github.com/repos/stiang/koa-jwt/pulls/31/comments"},"review_comment":{"href":"https://api.github.com/repos/stiang/koa-jwt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stiang/koa-jwt/pulls/31/commits"},"statuses":{"href":"https://api.github.com/repos/stiang/koa-jwt/statuses/79a743fa2c5bce6c019a624679902c7ce38e52c9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":4,"additions":120,"deletions":50,"changed_files":3}}