{"action":"opened","number":54,"pull_request":{"url":"https://api.github.com/repos/koajs/generic-session/pulls/54","id":36916296,"html_url":"https://github.com/koajs/generic-session/pull/54","diff_url":"https://github.com/koajs/generic-session/pull/54.diff","patch_url":"https://github.com/koajs/generic-session/pull/54.patch","issue_url":"https://api.github.com/repos/koajs/generic-session/issues/54","number":54,"state":"open","locked":false,"title":"Added session id storage option to override session id store logic.","user":{"login":"NOX73","id":975907,"avatar_url":"https://avatars.githubusercontent.com/u/975907?v=3","gravatar_id":"","url":"https://api.github.com/users/NOX73","html_url":"https://github.com/NOX73","followers_url":"https://api.github.com/users/NOX73/followers","following_url":"https://api.github.com/users/NOX73/following{/other_user}","gists_url":"https://api.github.com/users/NOX73/gists{/gist_id}","starred_url":"https://api.github.com/users/NOX73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NOX73/subscriptions","organizations_url":"https://api.github.com/users/NOX73/orgs","repos_url":"https://api.github.com/users/NOX73/repos","events_url":"https://api.github.com/users/NOX73/events{/privacy}","received_events_url":"https://api.github.com/users/NOX73/received_events","type":"User","site_admin":false},"body":"Hi! I want to be able pass session id in a different way. In headers for example. \r\nNow you can do this:\r\n```javascript\r\n\r\nexports.session = genericSession({\r\n  sessionIdStore: {\r\n\r\n    get: function() {\r\n      var header = this.header.authorization;\r\n      if(!header) return;\r\n\r\n      var match = header.match(/Token (.*)/i);\r\n      if(match==null) return;\r\n\r\n      return match[1];;\r\n    },\r\n\r\n    set: function(){},\r\n    reset: function(){}\r\n  }\r\n});\r\n  \r\n```","created_at":"2015-06-04T09:23:28Z","updated_at":"2015-06-04T09:23:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/koajs/generic-session/pulls/54/commits","review_comments_url":"https://api.github.com/repos/koajs/generic-session/pulls/54/comments","review_comment_url":"https://api.github.com/repos/koajs/generic-session/pulls/comments{/number}","comments_url":"https://api.github.com/repos/koajs/generic-session/issues/54/comments","statuses_url":"https://api.github.com/repos/koajs/generic-session/statuses/4231a0f8295c633a376a030f831ab1f71e7850bf","head":{"label":"NOX73:feature/session-id-store","ref":"feature/session-id-store","sha":"4231a0f8295c633a376a030f831ab1f71e7850bf","user":{"login":"NOX73","id":975907,"avatar_url":"https://avatars.githubusercontent.com/u/975907?v=3","gravatar_id":"","url":"https://api.github.com/users/NOX73","html_url":"https://github.com/NOX73","followers_url":"https://api.github.com/users/NOX73/followers","following_url":"https://api.github.com/users/NOX73/following{/other_user}","gists_url":"https://api.github.com/users/NOX73/gists{/gist_id}","starred_url":"https://api.github.com/users/NOX73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NOX73/subscriptions","organizations_url":"https://api.github.com/users/NOX73/orgs","repos_url":"https://api.github.com/users/NOX73/repos","events_url":"https://api.github.com/users/NOX73/events{/privacy}","received_events_url":"https://api.github.com/users/NOX73/received_events","type":"User","site_admin":false},"repo":{"id":36666016,"name":"generic-session","full_name":"NOX73/generic-session","owner":{"login":"NOX73","id":975907,"avatar_url":"https://avatars.githubusercontent.com/u/975907?v=3","gravatar_id":"","url":"https://api.github.com/users/NOX73","html_url":"https://github.com/NOX73","followers_url":"https://api.github.com/users/NOX73/followers","following_url":"https://api.github.com/users/NOX73/following{/other_user}","gists_url":"https://api.github.com/users/NOX73/gists{/gist_id}","starred_url":"https://api.github.com/users/NOX73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NOX73/subscriptions","organizations_url":"https://api.github.com/users/NOX73/orgs","repos_url":"https://api.github.com/users/NOX73/repos","events_url":"https://api.github.com/users/NOX73/events{/privacy}","received_events_url":"https://api.github.com/users/NOX73/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NOX73/generic-session","description":"koa session store with memory, redis or others.","fork":true,"url":"https://api.github.com/repos/NOX73/generic-session","forks_url":"https://api.github.com/repos/NOX73/generic-session/forks","keys_url":"https://api.github.com/repos/NOX73/generic-session/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NOX73/generic-session/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NOX73/generic-session/teams","hooks_url":"https://api.github.com/repos/NOX73/generic-session/hooks","issue_events_url":"https://api.github.com/repos/NOX73/generic-session/issues/events{/number}","events_url":"https://api.github.com/repos/NOX73/generic-session/events","assignees_url":"https://api.github.com/repos/NOX73/generic-session/assignees{/user}","branches_url":"https://api.github.com/repos/NOX73/generic-session/branches{/branch}","tags_url":"https://api.github.com/repos/NOX73/generic-session/tags","blobs_url":"https://api.github.com/repos/NOX73/generic-session/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NOX73/generic-session/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NOX73/generic-session/git/refs{/sha}","trees_url":"https://api.github.com/repos/NOX73/generic-session/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NOX73/generic-session/statuses/{sha}","languages_url":"https://api.github.com/repos/NOX73/generic-session/languages","stargazers_url":"https://api.github.com/repos/NOX73/generic-session/stargazers","contributors_url":"https://api.github.com/repos/NOX73/generic-session/contributors","subscribers_url":"https://api.github.com/repos/NOX73/generic-session/subscribers","subscription_url":"https://api.github.com/repos/NOX73/generic-session/subscription","commits_url":"https://api.github.com/repos/NOX73/generic-session/commits{/sha}","git_commits_url":"https://api.github.com/repos/NOX73/generic-session/git/commits{/sha}","comments_url":"https://api.github.com/repos/NOX73/generic-session/comments{/number}","issue_comment_url":"https://api.github.com/repos/NOX73/generic-session/issues/comments{/number}","contents_url":"https://api.github.com/repos/NOX73/generic-session/contents/{+path}","compare_url":"https://api.github.com/repos/NOX73/generic-session/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NOX73/generic-session/merges","archive_url":"https://api.github.com/repos/NOX73/generic-session/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NOX73/generic-session/downloads","issues_url":"https://api.github.com/repos/NOX73/generic-session/issues{/number}","pulls_url":"https://api.github.com/repos/NOX73/generic-session/pulls{/number}","milestones_url":"https://api.github.com/repos/NOX73/generic-session/milestones{/number}","notifications_url":"https://api.github.com/repos/NOX73/generic-session/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NOX73/generic-session/labels{/name}","releases_url":"https://api.github.com/repos/NOX73/generic-session/releases{/id}","created_at":"2015-06-01T14:27:41Z","updated_at":"2015-06-01T14:27:42Z","pushed_at":"2015-06-02T12:08:18Z","git_url":"git://github.com/NOX73/generic-session.git","ssh_url":"git@github.com:NOX73/generic-session.git","clone_url":"https://github.com/NOX73/generic-session.git","svn_url":"https://github.com/NOX73/generic-session","homepage":"","size":705,"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":"koajs:master","ref":"master","sha":"d0521a4793803be5491270c58fb91721f827ccc9","user":{"login":"koajs","id":5055057,"avatar_url":"https://avatars.githubusercontent.com/u/5055057?v=3","gravatar_id":"","url":"https://api.github.com/users/koajs","html_url":"https://github.com/koajs","followers_url":"https://api.github.com/users/koajs/followers","following_url":"https://api.github.com/users/koajs/following{/other_user}","gists_url":"https://api.github.com/users/koajs/gists{/gist_id}","starred_url":"https://api.github.com/users/koajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koajs/subscriptions","organizations_url":"https://api.github.com/users/koajs/orgs","repos_url":"https://api.github.com/users/koajs/repos","events_url":"https://api.github.com/users/koajs/events{/privacy}","received_events_url":"https://api.github.com/users/koajs/received_events","type":"Organization","site_admin":false},"repo":{"id":15486519,"name":"generic-session","full_name":"koajs/generic-session","owner":{"login":"koajs","id":5055057,"avatar_url":"https://avatars.githubusercontent.com/u/5055057?v=3","gravatar_id":"","url":"https://api.github.com/users/koajs","html_url":"https://github.com/koajs","followers_url":"https://api.github.com/users/koajs/followers","following_url":"https://api.github.com/users/koajs/following{/other_user}","gists_url":"https://api.github.com/users/koajs/gists{/gist_id}","starred_url":"https://api.github.com/users/koajs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koajs/subscriptions","organizations_url":"https://api.github.com/users/koajs/orgs","repos_url":"https://api.github.com/users/koajs/repos","events_url":"https://api.github.com/users/koajs/events{/privacy}","received_events_url":"https://api.github.com/users/koajs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/koajs/generic-session","description":"koa session store with memory, redis or others.","fork":false,"url":"https://api.github.com/repos/koajs/generic-session","forks_url":"https://api.github.com/repos/koajs/generic-session/forks","keys_url":"https://api.github.com/repos/koajs/generic-session/keys{/key_id}","collaborators_url":"https://api.github.com/repos/koajs/generic-session/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/koajs/generic-session/teams","hooks_url":"https://api.github.com/repos/koajs/generic-session/hooks","issue_events_url":"https://api.github.com/repos/koajs/generic-session/issues/events{/number}","events_url":"https://api.github.com/repos/koajs/generic-session/events","assignees_url":"https://api.github.com/repos/koajs/generic-session/assignees{/user}","branches_url":"https://api.github.com/repos/koajs/generic-session/branches{/branch}","tags_url":"https://api.github.com/repos/koajs/generic-session/tags","blobs_url":"https://api.github.com/repos/koajs/generic-session/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/koajs/generic-session/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/koajs/generic-session/git/refs{/sha}","trees_url":"https://api.github.com/repos/koajs/generic-session/git/trees{/sha}","statuses_url":"https://api.github.com/repos/koajs/generic-session/statuses/{sha}","languages_url":"https://api.github.com/repos/koajs/generic-session/languages","stargazers_url":"https://api.github.com/repos/koajs/generic-session/stargazers","contributors_url":"https://api.github.com/repos/koajs/generic-session/contributors","subscribers_url":"https://api.github.com/repos/koajs/generic-session/subscribers","subscription_url":"https://api.github.com/repos/koajs/generic-session/subscription","commits_url":"https://api.github.com/repos/koajs/generic-session/commits{/sha}","git_commits_url":"https://api.github.com/repos/koajs/generic-session/git/commits{/sha}","comments_url":"https://api.github.com/repos/koajs/generic-session/comments{/number}","issue_comment_url":"https://api.github.com/repos/koajs/generic-session/issues/comments{/number}","contents_url":"https://api.github.com/repos/koajs/generic-session/contents/{+path}","compare_url":"https://api.github.com/repos/koajs/generic-session/compare/{base}...{head}","merges_url":"https://api.github.com/repos/koajs/generic-session/merges","archive_url":"https://api.github.com/repos/koajs/generic-session/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/koajs/generic-session/downloads","issues_url":"https://api.github.com/repos/koajs/generic-session/issues{/number}","pulls_url":"https://api.github.com/repos/koajs/generic-session/pulls{/number}","milestones_url":"https://api.github.com/repos/koajs/generic-session/milestones{/number}","notifications_url":"https://api.github.com/repos/koajs/generic-session/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/koajs/generic-session/labels{/name}","releases_url":"https://api.github.com/repos/koajs/generic-session/releases{/id}","created_at":"2013-12-28T03:44:57Z","updated_at":"2015-06-01T10:35:24Z","pushed_at":"2015-06-04T09:23:28Z","git_url":"git://github.com/koajs/generic-session.git","ssh_url":"git@github.com:koajs/generic-session.git","clone_url":"https://github.com/koajs/generic-session.git","svn_url":"https://github.com/koajs/generic-session","homepage":"","size":705,"stargazers_count":70,"watchers_count":70,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":7,"forks":21,"open_issues":7,"watchers":70,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/koajs/generic-session/pulls/54"},"html":{"href":"https://github.com/koajs/generic-session/pull/54"},"issue":{"href":"https://api.github.com/repos/koajs/generic-session/issues/54"},"comments":{"href":"https://api.github.com/repos/koajs/generic-session/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/koajs/generic-session/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/koajs/generic-session/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/koajs/generic-session/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/koajs/generic-session/statuses/4231a0f8295c633a376a030f831ab1f71e7850bf"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":26,"deletions":9,"changed_files":1}}