{"action":"closed","issue":{"url":"https://api.github.com/repos/sahat/megaboilerplate/issues/148","repository_url":"https://api.github.com/repos/sahat/megaboilerplate","labels_url":"https://api.github.com/repos/sahat/megaboilerplate/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/sahat/megaboilerplate/issues/148/comments","events_url":"https://api.github.com/repos/sahat/megaboilerplate/issues/148/events","html_url":"https://github.com/sahat/megaboilerplate/issues/148","id":163821120,"number":148,"title":"Account linking does not work under React","user":{"login":"maael","id":5610674,"avatar_url":"https://avatars.githubusercontent.com/u/5610674?v=3","gravatar_id":"","url":"https://api.github.com/users/maael","html_url":"https://github.com/maael","followers_url":"https://api.github.com/users/maael/followers","following_url":"https://api.github.com/users/maael/following{/other_user}","gists_url":"https://api.github.com/users/maael/gists{/gist_id}","starred_url":"https://api.github.com/users/maael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maael/subscriptions","organizations_url":"https://api.github.com/users/maael/orgs","repos_url":"https://api.github.com/users/maael/repos","events_url":"https://api.github.com/users/maael/events{/privacy}","received_events_url":"https://api.github.com/users/maael/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-05T10:38:59Z","updated_at":"2016-07-07T01:28:23Z","closed_at":"2016-07-07T01:28:23Z","body":"#### Behaviour\r\nWhen you try to link two accounts in a project generated with the react js framework, a new account is made instead.\r\n\r\n#### Background\r\nThis seems to be done because the `req.isAuthenticated()` call at https://git.io/vKTk6 fails, and https://git.io/vKTk1 will also fail to find a user as this is the first time the account for the chosen service has been seen, so a new account is made. \r\n\r\nIt appears that https://git.io/vKTkN has the token set as undefined, as the token can't be found in the cookies at that point for some reason.\r\n\r\n#### Expected Behaviour\r\nIt would be expected that `req.isAuthenticated()` check should pass, and the new service added the user on the `req`, linking the new account to the current account."}}
{"actor":{"display_login":"sahat"}}