{"action":"created","comment":{"url":"https://api.github.com/repos/crdschurch/crds-corejs/pulls/comments/50255210","id":50255210,"diff_hunk":"@@ -24,6 +41,30 @@\n       $http.defaults.headers.common.RefreshToken = refreshToken;\r\n     };\r\n \r\n+    vm.refresh = function(response) {\r\n+      $http.defaults.headers.common.RefreshToken = response.headers('refreshToken');\r\n+      $http.defaults.headers.common.Authorization = response.headers('sessionId');\r\n+\r\n+      console.log('updating cookies!');\r\n+      var expDate = new Date();\r\n+      var sessionLength = 1800000;\r\n+      expDate.setTime(expDate.getTime() + sessionLength);\r\n+      $timeout.cancel(timeoutPromise);\r","path":"app/services/session_service.js","position":42,"original_position":42,"commit_id":"e058a752130e35c701e3904608a80442ce177946","original_commit_id":"e058a752130e35c701e3904608a80442ce177946","user":{"login":"charlie-retzler","id":3252288,"avatar_url":"https://avatars.githubusercontent.com/u/3252288?v=3","gravatar_id":"","url":"https://api.github.com/users/charlie-retzler","html_url":"https://github.com/charlie-retzler","followers_url":"https://api.github.com/users/charlie-retzler/followers","following_url":"https://api.github.com/users/charlie-retzler/following{/other_user}","gists_url":"https://api.github.com/users/charlie-retzler/gists{/gist_id}","starred_url":"https://api.github.com/users/charlie-retzler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlie-retzler/subscriptions","organizations_url":"https://api.github.com/users/charlie-retzler/orgs","repos_url":"https://api.github.com/users/charlie-retzler/repos","events_url":"https://api.github.com/users/charlie-retzler/events{/privacy}","received_events_url":"https://api.github.com/users/charlie-retzler/received_events","type":"User","site_admin":false},"body":"Does $timeout.cancel() work with undefined?","created_at":"2016-01-20T13:52:00Z","updated_at":"2016-01-20T13:52:00Z","html_url":"https://github.com/crdschurch/crds-corejs/pull/199#discussion_r50255210","pull_request_url":"https://api.github.com/repos/crdschurch/crds-corejs/pulls/199","_links":{"self":{"href":"https://api.github.com/repos/crdschurch/crds-corejs/pulls/comments/50255210"},"html":{"href":"https://github.com/crdschurch/crds-corejs/pull/199#discussion_r50255210"},"pull_request":{"href":"https://api.github.com/repos/crdschurch/crds-corejs/pulls/199"}}},"pull_request":{"url":"https://api.github.com/repos/crdschurch/crds-corejs/pulls/199","id":56574023,"html_url":"https://github.com/crdschurch/crds-corejs/pull/199","diff_url":"https://github.com/crdschurch/crds-corejs/pull/199.diff","patch_url":"https://github.com/crdschurch/crds-corejs/pull/199.patch","issue_url":"https://api.github.com/repos/crdschurch/crds-corejs/issues/199","number":199,"state":"open","locked":false,"title":"Defect/DE464 SessionExtension","user":{"login":"danrye","id":508832,"avatar_url":"https://avatars.githubusercontent.com/u/508832?v=3","gravatar_id":"","url":"https://api.github.com/users/danrye","html_url":"https://github.com/danrye","followers_url":"https://api.github.com/users/danrye/followers","following_url":"https://api.github.com/users/danrye/following{/other_user}","gists_url":"https://api.github.com/users/danrye/gists{/gist_id}","starred_url":"https://api.github.com/users/danrye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danrye/subscriptions","organizations_url":"https://api.github.com/users/danrye/orgs","repos_url":"https://api.github.com/users/danrye/repos","events_url":"https://api.github.com/users/danrye/events{/privacy}","received_events_url":"https://api.github.com/users/danrye/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-20T07:45:16Z","updated_at":"2016-01-20T13:52:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"80dfc2560c303a71a509afcdbcea285609481cb1","assignee":{"login":"charlie-retzler","id":3252288,"avatar_url":"https://avatars.githubusercontent.com/u/3252288?v=3","gravatar_id":"","url":"https://api.github.com/users/charlie-retzler","html_url":"https://github.com/charlie-retzler","followers_url":"https://api.github.com/users/charlie-retzler/followers","following_url":"https://api.github.com/users/charlie-retzler/following{/other_user}","gists_url":"https://api.github.com/users/charlie-retzler/gists{/gist_id}","starred_url":"https://api.github.com/users/charlie-retzler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlie-retzler/subscriptions","organizations_url":"https://api.github.com/users/charlie-retzler/orgs","repos_url":"https://api.github.com/users/charlie-retzler/repos","events_url":"https://api.github.com/users/charlie-retzler/events{/privacy}","received_events_url":"https://api.github.com/users/charlie-retzler/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/crdschurch/crds-corejs/pulls/199/commits","review_comments_url":"https://api.github.com/repos/crdschurch/crds-corejs/pulls/199/comments","review_comment_url":"https://api.github.com/repos/crdschurch/crds-corejs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crdschurch/crds-corejs/issues/199/comments","statuses_url":"https://api.github.com/repos/crdschurch/crds-corejs/statuses/e058a752130e35c701e3904608a80442ce177946","head":{"label":"crdschurch:defect/DE464-SessionExtension","ref":"defect/DE464-SessionExtension","sha":"e058a752130e35c701e3904608a80442ce177946","user":{"login":"crdschurch","id":1843144,"avatar_url":"https://avatars.githubusercontent.com/u/1843144?v=3","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"repo":{"id":39856649,"name":"crds-corejs","full_name":"crdschurch/crds-corejs","owner":{"login":"crdschurch","id":1843144,"avatar_url":"https://avatars.githubusercontent.com/u/1843144?v=3","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crdschurch/crds-corejs","description":"Core Javascript Module for Crossroads","fork":false,"url":"https://api.github.com/repos/crdschurch/crds-corejs","forks_url":"https://api.github.com/repos/crdschurch/crds-corejs/forks","keys_url":"https://api.github.com/repos/crdschurch/crds-corejs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crdschurch/crds-corejs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crdschurch/crds-corejs/teams","hooks_url":"https://api.github.com/repos/crdschurch/crds-corejs/hooks","issue_events_url":"https://api.github.com/repos/crdschurch/crds-corejs/issues/events{/number}","events_url":"https://api.github.com/repos/crdschurch/crds-corejs/events","assignees_url":"https://api.github.com/repos/crdschurch/crds-corejs/assignees{/user}","branches_url":"https://api.github.com/repos/crdschurch/crds-corejs/branches{/branch}","tags_url":"https://api.github.com/repos/crdschurch/crds-corejs/tags","blobs_url":"https://api.github.com/repos/crdschurch/crds-corejs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crdschurch/crds-corejs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crdschurch/crds-corejs/git/refs{/sha}","trees_url":"https://api.github.com/repos/crdschurch/crds-corejs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crdschurch/crds-corejs/statuses/{sha}","languages_url":"https://api.github.com/repos/crdschurch/crds-corejs/languages","stargazers_url":"https://api.github.com/repos/crdschurch/crds-corejs/stargazers","contributors_url":"https://api.github.com/repos/crdschurch/crds-corejs/contributors","subscribers_url":"https://api.github.com/repos/crdschurch/crds-corejs/subscribers","subscription_url":"https://api.github.com/repos/crdschurch/crds-corejs/subscription","commits_url":"https://api.github.com/repos/crdschurch/crds-corejs/commits{/sha}","git_commits_url":"https://api.github.com/repos/crdschurch/crds-corejs/git/commits{/sha}","comments_url":"https://api.github.com/repos/crdschurch/crds-corejs/comments{/number}","issue_comment_url":"https://api.github.com/repos/crdschurch/crds-corejs/issues/comments{/number}","contents_url":"https://api.github.com/repos/crdschurch/crds-corejs/contents/{+path}","compare_url":"https://api.github.com/repos/crdschurch/crds-corejs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crdschurch/crds-corejs/merges","archive_url":"https://api.github.com/repos/crdschurch/crds-corejs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crdschurch/crds-corejs/downloads","issues_url":"https://api.github.com/repos/crdschurch/crds-corejs/issues{/number}","pulls_url":"https://api.github.com/repos/crdschurch/crds-corejs/pulls{/number}","milestones_url":"https://api.github.com/repos/crdschurch/crds-corejs/milestones{/number}","notifications_url":"https://api.github.com/repos/crdschurch/crds-corejs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crdschurch/crds-corejs/labels{/name}","releases_url":"https://api.github.com/repos/crdschurch/crds-corejs/releases{/id}","created_at":"2015-07-28T20:40:08Z","updated_at":"2016-01-13T20:18:24Z","pushed_at":"2016-01-20T07:45:16Z","git_url":"git://github.com/crdschurch/crds-corejs.git","ssh_url":"git@github.com:crdschurch/crds-corejs.git","clone_url":"https://github.com/crdschurch/crds-corejs.git","svn_url":"https://github.com/crdschurch/crds-corejs","homepage":null,"size":2619,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"development"}},"base":{"label":"crdschurch:development","ref":"development","sha":"5b0a2a40378605a2be8d1d88b00c416f161c779e","user":{"login":"crdschurch","id":1843144,"avatar_url":"https://avatars.githubusercontent.com/u/1843144?v=3","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"repo":{"id":39856649,"name":"crds-corejs","full_name":"crdschurch/crds-corejs","owner":{"login":"crdschurch","id":1843144,"avatar_url":"https://avatars.githubusercontent.com/u/1843144?v=3","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crdschurch/crds-corejs","description":"Core Javascript Module for Crossroads","fork":false,"url":"https://api.github.com/repos/crdschurch/crds-corejs","forks_url":"https://api.github.com/repos/crdschurch/crds-corejs/forks","keys_url":"https://api.github.com/repos/crdschurch/crds-corejs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crdschurch/crds-corejs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crdschurch/crds-corejs/teams","hooks_url":"https://api.github.com/repos/crdschurch/crds-corejs/hooks","issue_events_url":"https://api.github.com/repos/crdschurch/crds-corejs/issues/events{/number}","events_url":"https://api.github.com/repos/crdschurch/crds-corejs/events","assignees_url":"https://api.github.com/repos/crdschurch/crds-corejs/assignees{/user}","branches_url":"https://api.github.com/repos/crdschurch/crds-corejs/branches{/branch}","tags_url":"https://api.github.com/repos/crdschurch/crds-corejs/tags","blobs_url":"https://api.github.com/repos/crdschurch/crds-corejs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crdschurch/crds-corejs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crdschurch/crds-corejs/git/refs{/sha}","trees_url":"https://api.github.com/repos/crdschurch/crds-corejs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crdschurch/crds-corejs/statuses/{sha}","languages_url":"https://api.github.com/repos/crdschurch/crds-corejs/languages","stargazers_url":"https://api.github.com/repos/crdschurch/crds-corejs/stargazers","contributors_url":"https://api.github.com/repos/crdschurch/crds-corejs/contributors","subscribers_url":"https://api.github.com/repos/crdschurch/crds-corejs/subscribers","subscription_url":"https://api.github.com/repos/crdschurch/crds-corejs/subscription","commits_url":"https://api.github.com/repos/crdschurch/crds-corejs/commits{/sha}","git_commits_url":"https://api.github.com/repos/crdschurch/crds-corejs/git/commits{/sha}","comments_url":"https://api.github.com/repos/crdschurch/crds-corejs/comments{/number}","issue_comment_url":"https://api.github.com/repos/crdschurch/crds-corejs/issues/comments{/number}","contents_url":"https://api.github.com/repos/crdschurch/crds-corejs/contents/{+path}","compare_url":"https://api.github.com/repos/crdschurch/crds-corejs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crdschurch/crds-corejs/merges","archive_url":"https://api.github.com/repos/crdschurch/crds-corejs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crdschurch/crds-corejs/downloads","issues_url":"https://api.github.com/repos/crdschurch/crds-corejs/issues{/number}","pulls_url":"https://api.github.com/repos/crdschurch/crds-corejs/pulls{/number}","milestones_url":"https://api.github.com/repos/crdschurch/crds-corejs/milestones{/number}","notifications_url":"https://api.github.com/repos/crdschurch/crds-corejs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crdschurch/crds-corejs/labels{/name}","releases_url":"https://api.github.com/repos/crdschurch/crds-corejs/releases{/id}","created_at":"2015-07-28T20:40:08Z","updated_at":"2016-01-13T20:18:24Z","pushed_at":"2016-01-20T07:45:16Z","git_url":"git://github.com/crdschurch/crds-corejs.git","ssh_url":"git@github.com:crdschurch/crds-corejs.git","clone_url":"https://github.com/crdschurch/crds-corejs.git","svn_url":"https://github.com/crdschurch/crds-corejs","homepage":null,"size":2619,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/crdschurch/crds-corejs/pulls/199"},"html":{"href":"https://github.com/crdschurch/crds-corejs/pull/199"},"issue":{"href":"https://api.github.com/repos/crdschurch/crds-corejs/issues/199"},"comments":{"href":"https://api.github.com/repos/crdschurch/crds-corejs/issues/199/comments"},"review_comments":{"href":"https://api.github.com/repos/crdschurch/crds-corejs/pulls/199/comments"},"review_comment":{"href":"https://api.github.com/repos/crdschurch/crds-corejs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crdschurch/crds-corejs/pulls/199/commits"},"statuses":{"href":"https://api.github.com/repos/crdschurch/crds-corejs/statuses/e058a752130e35c701e3904608a80442ce177946"}}}}