{"action":"created","comment":{"url":"https://api.github.com/repos/andela/prometheus-ah/pulls/comments/214864647","pull_request_review_id":152004189,"id":214864647,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDg2NDY0Nw==","diff_hunk":"@@ -0,0 +1,120 @@\n+import chai, { expect } from 'chai';","path":"test/auth.spec.js","position":1,"original_position":1,"commit_id":"e2c8473f53f970c4004fba681fc7b84eb182ff80","original_commit_id":"e2c8473f53f970c4004fba681fc7b84eb182ff80","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","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":"Parsing error: 'import' and 'export' may appear only with 'sourceType: module'","created_at":"2018-09-04T10:29:42Z","updated_at":"2018-09-04T10:29:42Z","html_url":"https://github.com/andela/prometheus-ah/pull/9#discussion_r214864647","pull_request_url":"https://api.github.com/repos/andela/prometheus-ah/pulls/9","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/andela/prometheus-ah/pulls/comments/214864647"},"html":{"href":"https://github.com/andela/prometheus-ah/pull/9#discussion_r214864647"},"pull_request":{"href":"https://api.github.com/repos/andela/prometheus-ah/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/andela/prometheus-ah/pulls/9","id":212773981,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNzczOTgx","html_url":"https://github.com/andela/prometheus-ah/pull/9","diff_url":"https://github.com/andela/prometheus-ah/pull/9.diff","patch_url":"https://github.com/andela/prometheus-ah/pull/9.patch","issue_url":"https://api.github.com/repos/andela/prometheus-ah/issues/9","number":9,"state":"open","locked":false,"title":"#159987723 Implement JWT for user signUp and login Functionality","user":{"login":"valentineezeh","id":32917511,"node_id":"MDQ6VXNlcjMyOTE3NTEx","avatar_url":"https://avatars3.githubusercontent.com/u/32917511?v=4","gravatar_id":"","url":"https://api.github.com/users/valentineezeh","html_url":"https://github.com/valentineezeh","followers_url":"https://api.github.com/users/valentineezeh/followers","following_url":"https://api.github.com/users/valentineezeh/following{/other_user}","gists_url":"https://api.github.com/users/valentineezeh/gists{/gist_id}","starred_url":"https://api.github.com/users/valentineezeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentineezeh/subscriptions","organizations_url":"https://api.github.com/users/valentineezeh/orgs","repos_url":"https://api.github.com/users/valentineezeh/repos","events_url":"https://api.github.com/users/valentineezeh/events{/privacy}","received_events_url":"https://api.github.com/users/valentineezeh/received_events","type":"User","site_admin":false},"body":"### What does this PR do?\r\n- This PR implement a functionality that sends JWT token to users when they sign up or sign in.\r\n\r\n### Description of the task to be completed:\r\n- implement authentication for user sign up using JWT\r\n- implement authentication for user login using JWT\r\n- implement the test for user sign up endpoints\r\n- implement the test for user sign in endpoints\r\n- implement token verification functionality\r\n\r\n### How can this be manually tested?\r\n- Run API endpoints using Postman.\r\n\r\n### Any background context you want to provide?\r\n- N/A\r\n\r\n### What are the relevant pivotal tracker stories?\r\n- [#159987723](https://www.pivotaltracker.com/story/show/159987723)","created_at":"2018-09-03T15:03:07Z","updated_at":"2018-09-04T10:29:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe07e36e0b5f347bc6a60849d999df873aeed95d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/prometheus-ah/pulls/9/commits","review_comments_url":"https://api.github.com/repos/andela/prometheus-ah/pulls/9/comments","review_comment_url":"https://api.github.com/repos/andela/prometheus-ah/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/prometheus-ah/issues/9/comments","statuses_url":"https://api.github.com/repos/andela/prometheus-ah/statuses/e2c8473f53f970c4004fba681fc7b84eb182ff80","head":{"label":"andela:ft-auth-register-user-jwt-159987723","ref":"ft-auth-register-user-jwt-159987723","sha":"e2c8473f53f970c4004fba681fc7b84eb182ff80","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","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":145832303,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU4MzIzMDM=","name":"prometheus-ah","full_name":"andela/prometheus-ah","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","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/prometheus-ah","description":null,"fork":false,"url":"https://api.github.com/repos/andela/prometheus-ah","forks_url":"https://api.github.com/repos/andela/prometheus-ah/forks","keys_url":"https://api.github.com/repos/andela/prometheus-ah/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/prometheus-ah/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/prometheus-ah/teams","hooks_url":"https://api.github.com/repos/andela/prometheus-ah/hooks","issue_events_url":"https://api.github.com/repos/andela/prometheus-ah/issues/events{/number}","events_url":"https://api.github.com/repos/andela/prometheus-ah/events","assignees_url":"https://api.github.com/repos/andela/prometheus-ah/assignees{/user}","branches_url":"https://api.github.com/repos/andela/prometheus-ah/branches{/branch}","tags_url":"https://api.github.com/repos/andela/prometheus-ah/tags","blobs_url":"https://api.github.com/repos/andela/prometheus-ah/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/prometheus-ah/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/prometheus-ah/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/prometheus-ah/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/prometheus-ah/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/prometheus-ah/languages","stargazers_url":"https://api.github.com/repos/andela/prometheus-ah/stargazers","contributors_url":"https://api.github.com/repos/andela/prometheus-ah/contributors","subscribers_url":"https://api.github.com/repos/andela/prometheus-ah/subscribers","subscription_url":"https://api.github.com/repos/andela/prometheus-ah/subscription","commits_url":"https://api.github.com/repos/andela/prometheus-ah/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/prometheus-ah/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/prometheus-ah/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/prometheus-ah/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/prometheus-ah/contents/{+path}","compare_url":"https://api.github.com/repos/andela/prometheus-ah/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/prometheus-ah/merges","archive_url":"https://api.github.com/repos/andela/prometheus-ah/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/prometheus-ah/downloads","issues_url":"https://api.github.com/repos/andela/prometheus-ah/issues{/number}","pulls_url":"https://api.github.com/repos/andela/prometheus-ah/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/prometheus-ah/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/prometheus-ah/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/prometheus-ah/labels{/name}","releases_url":"https://api.github.com/repos/andela/prometheus-ah/releases{/id}","deployments_url":"https://api.github.com/repos/andela/prometheus-ah/deployments","created_at":"2018-08-23T09:34:39Z","updated_at":"2018-09-01T10:39:39Z","pushed_at":"2018-09-04T10:29:32Z","git_url":"git://github.com/andela/prometheus-ah.git","ssh_url":"git@github.com:andela/prometheus-ah.git","clone_url":"https://github.com/andela/prometheus-ah.git","svn_url":"https://github.com/andela/prometheus-ah","homepage":null,"size":204,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":2,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"cb75a397bcdd2836710655e67d76942d1d21b517","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","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":145832303,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU4MzIzMDM=","name":"prometheus-ah","full_name":"andela/prometheus-ah","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","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/prometheus-ah","description":null,"fork":false,"url":"https://api.github.com/repos/andela/prometheus-ah","forks_url":"https://api.github.com/repos/andela/prometheus-ah/forks","keys_url":"https://api.github.com/repos/andela/prometheus-ah/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/prometheus-ah/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/prometheus-ah/teams","hooks_url":"https://api.github.com/repos/andela/prometheus-ah/hooks","issue_events_url":"https://api.github.com/repos/andela/prometheus-ah/issues/events{/number}","events_url":"https://api.github.com/repos/andela/prometheus-ah/events","assignees_url":"https://api.github.com/repos/andela/prometheus-ah/assignees{/user}","branches_url":"https://api.github.com/repos/andela/prometheus-ah/branches{/branch}","tags_url":"https://api.github.com/repos/andela/prometheus-ah/tags","blobs_url":"https://api.github.com/repos/andela/prometheus-ah/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/prometheus-ah/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/prometheus-ah/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/prometheus-ah/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/prometheus-ah/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/prometheus-ah/languages","stargazers_url":"https://api.github.com/repos/andela/prometheus-ah/stargazers","contributors_url":"https://api.github.com/repos/andela/prometheus-ah/contributors","subscribers_url":"https://api.github.com/repos/andela/prometheus-ah/subscribers","subscription_url":"https://api.github.com/repos/andela/prometheus-ah/subscription","commits_url":"https://api.github.com/repos/andela/prometheus-ah/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/prometheus-ah/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/prometheus-ah/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/prometheus-ah/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/prometheus-ah/contents/{+path}","compare_url":"https://api.github.com/repos/andela/prometheus-ah/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/prometheus-ah/merges","archive_url":"https://api.github.com/repos/andela/prometheus-ah/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/prometheus-ah/downloads","issues_url":"https://api.github.com/repos/andela/prometheus-ah/issues{/number}","pulls_url":"https://api.github.com/repos/andela/prometheus-ah/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/prometheus-ah/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/prometheus-ah/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/prometheus-ah/labels{/name}","releases_url":"https://api.github.com/repos/andela/prometheus-ah/releases{/id}","deployments_url":"https://api.github.com/repos/andela/prometheus-ah/deployments","created_at":"2018-08-23T09:34:39Z","updated_at":"2018-09-01T10:39:39Z","pushed_at":"2018-09-04T10:29:32Z","git_url":"git://github.com/andela/prometheus-ah.git","ssh_url":"git@github.com:andela/prometheus-ah.git","clone_url":"https://github.com/andela/prometheus-ah.git","svn_url":"https://github.com/andela/prometheus-ah","homepage":null,"size":204,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/prometheus-ah/pulls/9"},"html":{"href":"https://github.com/andela/prometheus-ah/pull/9"},"issue":{"href":"https://api.github.com/repos/andela/prometheus-ah/issues/9"},"comments":{"href":"https://api.github.com/repos/andela/prometheus-ah/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/prometheus-ah/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/prometheus-ah/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/prometheus-ah/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/andela/prometheus-ah/statuses/e2c8473f53f970c4004fba681fc7b84eb182ff80"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}