{"action":"created","issue":{"url":"https://api.github.com/repos/sahat/satellizer/issues/291","labels_url":"https://api.github.com/repos/sahat/satellizer/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/sahat/satellizer/issues/291/comments","events_url":"https://api.github.com/repos/sahat/satellizer/issues/291/events","html_url":"https://github.com/sahat/satellizer/issues/291","id":58135895,"number":291,"title":"shared.setToken exception with Implicit flow if no response.data","user":{"login":"rsouthgate","id":362909,"avatar_url":"https://avatars.githubusercontent.com/u/362909?v=3","gravatar_id":"","url":"https://api.github.com/users/rsouthgate","html_url":"https://github.com/rsouthgate","followers_url":"https://api.github.com/users/rsouthgate/followers","following_url":"https://api.github.com/users/rsouthgate/following{/other_user}","gists_url":"https://api.github.com/users/rsouthgate/gists{/gist_id}","starred_url":"https://api.github.com/users/rsouthgate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsouthgate/subscriptions","organizations_url":"https://api.github.com/users/rsouthgate/orgs","repos_url":"https://api.github.com/users/rsouthgate/repos","events_url":"https://api.github.com/users/rsouthgate/events{/privacy}","received_events_url":"https://api.github.com/users/rsouthgate/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-18T22:04:19Z","updated_at":"2015-11-24T18:24:17Z","closed_at":"2015-11-24T18:24:17Z","body":"The setToken method conditionally tries to set the token from the response.data object if the response.access_token exists.\r\n\r\nIn our scenario (no JWT, just a straight forward bearer token) the access_token is returned but there is no data posted back so satellizer throws an exception. Is this scenario a wrong use case for satellizer or is satellizer wrong for assuming there is always a response.data object coming back?"},"comment":{"url":"https://api.github.com/repos/sahat/satellizer/issues/comments/159362468","html_url":"https://github.com/sahat/satellizer/issues/291#issuecomment-159362468","issue_url":"https://api.github.com/repos/sahat/satellizer/issues/291","id":159362468,"user":{"login":"sahat","id":544954,"avatar_url":"https://avatars.githubusercontent.com/u/544954?v=3","gravatar_id":"","url":"https://api.github.com/users/sahat","html_url":"https://github.com/sahat","followers_url":"https://api.github.com/users/sahat/followers","following_url":"https://api.github.com/users/sahat/following{/other_user}","gists_url":"https://api.github.com/users/sahat/gists{/gist_id}","starred_url":"https://api.github.com/users/sahat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sahat/subscriptions","organizations_url":"https://api.github.com/users/sahat/orgs","repos_url":"https://api.github.com/users/sahat/repos","events_url":"https://api.github.com/users/sahat/events{/privacy}","received_events_url":"https://api.github.com/users/sahat/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T18:24:16Z","updated_at":"2015-11-24T18:24:16Z","body":"This issue should have been fixed in 0.13.\r\n\r\nI also just tried signing in with Google using `token` response type and got the following token without any problems:\r\n\r\n> \"ya29.NgLFES1MNmHeS3WDKiQIDAb0eSqTtq1bgX7Xmwjig7PhYpLbt6b97pJGjLzYiDz3k6t5\"\r\n"}}