{"action":"created","comment":{"url":"https://api.github.com/repos/andela/mont-blanc-cfh/pulls/comments/147946572","pull_request_review_id":73112187,"id":147946572,"diff_hunk":"@@ -0,0 +1,14 @@\n+$(document).ready(() => {","path":"public/js/main.js","position":1,"original_position":1,"commit_id":"56ea4bf0377db72e24b628fd5f242a9be36ddd0f","original_commit_id":"56ea4bf0377db72e24b628fd5f242a9be36ddd0f","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'$' is not defined    no-undef","created_at":"2017-10-31T10:21:37Z","updated_at":"2017-10-31T10:21:38Z","html_url":"https://github.com/andela/mont-blanc-cfh/pull/71#discussion_r147946572","pull_request_url":"https://api.github.com/repos/andela/mont-blanc-cfh/pulls/71","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/andela/mont-blanc-cfh/pulls/comments/147946572"},"html":{"href":"https://github.com/andela/mont-blanc-cfh/pull/71#discussion_r147946572"},"pull_request":{"href":"https://api.github.com/repos/andela/mont-blanc-cfh/pulls/71"}}},"pull_request":{"url":"https://api.github.com/repos/andela/mont-blanc-cfh/pulls/71","id":149745255,"html_url":"https://github.com/andela/mont-blanc-cfh/pull/71","diff_url":"https://github.com/andela/mont-blanc-cfh/pull/71.diff","patch_url":"https://github.com/andela/mont-blanc-cfh/pull/71.patch","issue_url":"https://api.github.com/repos/andela/mont-blanc-cfh/issues/71","number":71,"state":"open","locked":false,"title":"feature(login): implement jwt on successful login","user":{"login":"torkpe","id":9434249,"avatar_url":"https://avatars1.githubusercontent.com/u/9434249?v=4","gravatar_id":"","url":"https://api.github.com/users/torkpe","html_url":"https://github.com/torkpe","followers_url":"https://api.github.com/users/torkpe/followers","following_url":"https://api.github.com/users/torkpe/following{/other_user}","gists_url":"https://api.github.com/users/torkpe/gists{/gist_id}","starred_url":"https://api.github.com/users/torkpe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torkpe/subscriptions","organizations_url":"https://api.github.com/users/torkpe/orgs","repos_url":"https://api.github.com/users/torkpe/repos","events_url":"https://api.github.com/users/torkpe/events{/privacy}","received_events_url":"https://api.github.com/users/torkpe/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\n\r\nImplements jwt on successful login\r\n\r\n#### Description of Task to be completed?\r\n\r\nUpon authentication, user should be assigned a token to be used when calling other api endpoints that require authentication\r\n\r\n#### How should this be manually tested?\r\n\r\n+ Log in with details from an already created account\r\n\r\n+ Inspect element on browser and navigate to `Application` then `Local storage` to find key of token and value of a long random string\r\n\r\n#### Any background context you want to provide?\r\n\r\nNone\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n\r\n#151991932 implement jwt for succesful login\r\n\r\n#### Screenshots (if appropriate)\r\n\r\n![image](https://user-images.githubusercontent.com/9434249/32002782-3207b560-b995-11e7-8aa4-ad8895bf1c9c.png)\r\n\r\n#### Questions:\r\n\r\nNone","created_at":"2017-10-31T10:21:18Z","updated_at":"2017-10-31T10:21:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb46f4c0d0a77278ab75b6056d01f5561912a577","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/mont-blanc-cfh/pulls/71/commits","review_comments_url":"https://api.github.com/repos/andela/mont-blanc-cfh/pulls/71/comments","review_comment_url":"https://api.github.com/repos/andela/mont-blanc-cfh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/mont-blanc-cfh/issues/71/comments","statuses_url":"https://api.github.com/repos/andela/mont-blanc-cfh/statuses/56ea4bf0377db72e24b628fd5f242a9be36ddd0f","head":{"label":"andela:feature/151991933/implement-jwt-login","ref":"feature/151991933/implement-jwt-login","sha":"56ea4bf0377db72e24b628fd5f242a9be36ddd0f","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":106806318,"name":"mont-blanc-cfh","full_name":"andela/mont-blanc-cfh","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/mont-blanc-cfh","description":null,"fork":false,"url":"https://api.github.com/repos/andela/mont-blanc-cfh","forks_url":"https://api.github.com/repos/andela/mont-blanc-cfh/forks","keys_url":"https://api.github.com/repos/andela/mont-blanc-cfh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/mont-blanc-cfh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/mont-blanc-cfh/teams","hooks_url":"https://api.github.com/repos/andela/mont-blanc-cfh/hooks","issue_events_url":"https://api.github.com/repos/andela/mont-blanc-cfh/issues/events{/number}","events_url":"https://api.github.com/repos/andela/mont-blanc-cfh/events","assignees_url":"https://api.github.com/repos/andela/mont-blanc-cfh/assignees{/user}","branches_url":"https://api.github.com/repos/andela/mont-blanc-cfh/branches{/branch}","tags_url":"https://api.github.com/repos/andela/mont-blanc-cfh/tags","blobs_url":"https://api.github.com/repos/andela/mont-blanc-cfh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/mont-blanc-cfh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/mont-blanc-cfh/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/mont-blanc-cfh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/mont-blanc-cfh/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/mont-blanc-cfh/languages","stargazers_url":"https://api.github.com/repos/andela/mont-blanc-cfh/stargazers","contributors_url":"https://api.github.com/repos/andela/mont-blanc-cfh/contributors","subscribers_url":"https://api.github.com/repos/andela/mont-blanc-cfh/subscribers","subscription_url":"https://api.github.com/repos/andela/mont-blanc-cfh/subscription","commits_url":"https://api.github.com/repos/andela/mont-blanc-cfh/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/mont-blanc-cfh/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/mont-blanc-cfh/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/mont-blanc-cfh/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/mont-blanc-cfh/contents/{+path}","compare_url":"https://api.github.com/repos/andela/mont-blanc-cfh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/mont-blanc-cfh/merges","archive_url":"https://api.github.com/repos/andela/mont-blanc-cfh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/mont-blanc-cfh/downloads","issues_url":"https://api.github.com/repos/andela/mont-blanc-cfh/issues{/number}","pulls_url":"https://api.github.com/repos/andela/mont-blanc-cfh/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/mont-blanc-cfh/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/mont-blanc-cfh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/mont-blanc-cfh/labels{/name}","releases_url":"https://api.github.com/repos/andela/mont-blanc-cfh/releases{/id}","deployments_url":"https://api.github.com/repos/andela/mont-blanc-cfh/deployments","created_at":"2017-10-13T09:41:52Z","updated_at":"2017-10-30T11:03:25Z","pushed_at":"2017-10-31T10:21:19Z","git_url":"git://github.com/andela/mont-blanc-cfh.git","ssh_url":"git@github.com:andela/mont-blanc-cfh.git","clone_url":"https://github.com/andela/mont-blanc-cfh.git","svn_url":"https://github.com/andela/mont-blanc-cfh","homepage":null,"size":10022,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"staging"}},"base":{"label":"andela:staging","ref":"staging","sha":"3807a0b92f6a2e068199697c1bd58df03ecae628","user":{"login":"andela","id":4100206,"avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":106806318,"name":"mont-blanc-cfh","full_name":"andela/mont-blanc-cfh","owner":{"login":"andela","id":4100206,"avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/mont-blanc-cfh","description":null,"fork":false,"url":"https://api.github.com/repos/andela/mont-blanc-cfh","forks_url":"https://api.github.com/repos/andela/mont-blanc-cfh/forks","keys_url":"https://api.github.com/repos/andela/mont-blanc-cfh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/mont-blanc-cfh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/mont-blanc-cfh/teams","hooks_url":"https://api.github.com/repos/andela/mont-blanc-cfh/hooks","issue_events_url":"https://api.github.com/repos/andela/mont-blanc-cfh/issues/events{/number}","events_url":"https://api.github.com/repos/andela/mont-blanc-cfh/events","assignees_url":"https://api.github.com/repos/andela/mont-blanc-cfh/assignees{/user}","branches_url":"https://api.github.com/repos/andela/mont-blanc-cfh/branches{/branch}","tags_url":"https://api.github.com/repos/andela/mont-blanc-cfh/tags","blobs_url":"https://api.github.com/repos/andela/mont-blanc-cfh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/mont-blanc-cfh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/mont-blanc-cfh/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/mont-blanc-cfh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/mont-blanc-cfh/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/mont-blanc-cfh/languages","stargazers_url":"https://api.github.com/repos/andela/mont-blanc-cfh/stargazers","contributors_url":"https://api.github.com/repos/andela/mont-blanc-cfh/contributors","subscribers_url":"https://api.github.com/repos/andela/mont-blanc-cfh/subscribers","subscription_url":"https://api.github.com/repos/andela/mont-blanc-cfh/subscription","commits_url":"https://api.github.com/repos/andela/mont-blanc-cfh/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/mont-blanc-cfh/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/mont-blanc-cfh/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/mont-blanc-cfh/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/mont-blanc-cfh/contents/{+path}","compare_url":"https://api.github.com/repos/andela/mont-blanc-cfh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/mont-blanc-cfh/merges","archive_url":"https://api.github.com/repos/andela/mont-blanc-cfh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/mont-blanc-cfh/downloads","issues_url":"https://api.github.com/repos/andela/mont-blanc-cfh/issues{/number}","pulls_url":"https://api.github.com/repos/andela/mont-blanc-cfh/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/mont-blanc-cfh/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/mont-blanc-cfh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/mont-blanc-cfh/labels{/name}","releases_url":"https://api.github.com/repos/andela/mont-blanc-cfh/releases{/id}","deployments_url":"https://api.github.com/repos/andela/mont-blanc-cfh/deployments","created_at":"2017-10-13T09:41:52Z","updated_at":"2017-10-30T11:03:25Z","pushed_at":"2017-10-31T10:21:19Z","git_url":"git://github.com/andela/mont-blanc-cfh.git","ssh_url":"git@github.com:andela/mont-blanc-cfh.git","clone_url":"https://github.com/andela/mont-blanc-cfh.git","svn_url":"https://github.com/andela/mont-blanc-cfh","homepage":null,"size":10022,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/mont-blanc-cfh/pulls/71"},"html":{"href":"https://github.com/andela/mont-blanc-cfh/pull/71"},"issue":{"href":"https://api.github.com/repos/andela/mont-blanc-cfh/issues/71"},"comments":{"href":"https://api.github.com/repos/andela/mont-blanc-cfh/issues/71/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/mont-blanc-cfh/pulls/71/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/mont-blanc-cfh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/mont-blanc-cfh/pulls/71/commits"},"statuses":{"href":"https://api.github.com/repos/andela/mont-blanc-cfh/statuses/56ea4bf0377db72e24b628fd5f242a9be36ddd0f"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}