{"action":"created","issue":{"url":"https://api.github.com/repos/artisanal-loofah/artisanal-loofah/issues/113","repository_url":"https://api.github.com/repos/artisanal-loofah/artisanal-loofah","labels_url":"https://api.github.com/repos/artisanal-loofah/artisanal-loofah/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/artisanal-loofah/artisanal-loofah/issues/113/comments","events_url":"https://api.github.com/repos/artisanal-loofah/artisanal-loofah/issues/113/events","html_url":"https://github.com/artisanal-loofah/artisanal-loofah/pull/113","id":136985829,"number":113,"title":"Fix auth","user":{"login":"abuddiga","id":4003102,"avatar_url":"https://avatars.githubusercontent.com/u/4003102?v=3","gravatar_id":"","url":"https://api.github.com/users/abuddiga","html_url":"https://github.com/abuddiga","followers_url":"https://api.github.com/users/abuddiga/followers","following_url":"https://api.github.com/users/abuddiga/following{/other_user}","gists_url":"https://api.github.com/users/abuddiga/gists{/gist_id}","starred_url":"https://api.github.com/users/abuddiga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abuddiga/subscriptions","organizations_url":"https://api.github.com/users/abuddiga/orgs","repos_url":"https://api.github.com/users/abuddiga/repos","events_url":"https://api.github.com/users/abuddiga/events{/privacy}","received_events_url":"https://api.github.com/users/abuddiga/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/artisanal-loofah/artisanal-loofah/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"abuddiga","id":4003102,"avatar_url":"https://avatars.githubusercontent.com/u/4003102?v=3","gravatar_id":"","url":"https://api.github.com/users/abuddiga","html_url":"https://github.com/abuddiga","followers_url":"https://api.github.com/users/abuddiga/followers","following_url":"https://api.github.com/users/abuddiga/following{/other_user}","gists_url":"https://api.github.com/users/abuddiga/gists{/gist_id}","starred_url":"https://api.github.com/users/abuddiga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abuddiga/subscriptions","organizations_url":"https://api.github.com/users/abuddiga/orgs","repos_url":"https://api.github.com/users/abuddiga/repos","events_url":"https://api.github.com/users/abuddiga/events{/privacy}","received_events_url":"https://api.github.com/users/abuddiga/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-02-28T00:23:43Z","updated_at":"2016-02-28T06:03:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/artisanal-loofah/artisanal-loofah/pulls/113","html_url":"https://github.com/artisanal-loofah/artisanal-loofah/pull/113","diff_url":"https://github.com/artisanal-loofah/artisanal-loofah/pull/113.diff","patch_url":"https://github.com/artisanal-loofah/artisanal-loofah/pull/113.patch"},"body":"Refactored the app to use jwt tokens rather than user_id for authentication. For all listItem requests, we are now getting the user server side using jwt rather than sending the user_id from the client side (see changes in all client-side listItem files and listItemModel.js. Protected routes now use the helper.decode method defined in helpers.js to authenticate the user and add the user object to the req to the protected route.\r\n\r\nAlso put offers and onSites on the rootScope (they were incorrectly on scope instead).\r\n\r\nAlso removed some unnecessary methods and comments."},"comment":{"url":"https://api.github.com/repos/artisanal-loofah/artisanal-loofah/issues/comments/189788460","html_url":"https://github.com/artisanal-loofah/artisanal-loofah/pull/113#issuecomment-189788460","issue_url":"https://api.github.com/repos/artisanal-loofah/artisanal-loofah/issues/113","id":189788460,"user":{"login":"chououtside","id":14363565,"avatar_url":"https://avatars.githubusercontent.com/u/14363565?v=3","gravatar_id":"","url":"https://api.github.com/users/chououtside","html_url":"https://github.com/chououtside","followers_url":"https://api.github.com/users/chououtside/followers","following_url":"https://api.github.com/users/chououtside/following{/other_user}","gists_url":"https://api.github.com/users/chououtside/gists{/gist_id}","starred_url":"https://api.github.com/users/chououtside/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chououtside/subscriptions","organizations_url":"https://api.github.com/users/chououtside/orgs","repos_url":"https://api.github.com/users/chououtside/repos","events_url":"https://api.github.com/users/chououtside/events{/privacy}","received_events_url":"https://api.github.com/users/chououtside/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T06:03:57Z","updated_at":"2016-02-28T06:03:57Z","body":"reviewed and tested 👍"}}