{"action":"opened","issue":{"url":"https://api.github.com/repos/simplyGits/MagisterJS/issues/95","repository_url":"https://api.github.com/repos/simplyGits/MagisterJS","labels_url":"https://api.github.com/repos/simplyGits/MagisterJS/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/simplyGits/MagisterJS/issues/95/comments","events_url":"https://api.github.com/repos/simplyGits/MagisterJS/issues/95/events","html_url":"https://github.com/simplyGits/MagisterJS/issues/95","id":379238741,"node_id":"MDU6SXNzdWUzNzkyMzg3NDE=","number":95,"title":"Authenticating with token results in error","user":{"login":"Sj3rd","id":33723199,"node_id":"MDQ6VXNlcjMzNzIzMTk5","avatar_url":"https://avatars0.githubusercontent.com/u/33723199?v=4","gravatar_id":"","url":"https://api.github.com/users/Sj3rd","html_url":"https://github.com/Sj3rd","followers_url":"https://api.github.com/users/Sj3rd/followers","following_url":"https://api.github.com/users/Sj3rd/following{/other_user}","gists_url":"https://api.github.com/users/Sj3rd/gists{/gist_id}","starred_url":"https://api.github.com/users/Sj3rd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sj3rd/subscriptions","organizations_url":"https://api.github.com/users/Sj3rd/orgs","repos_url":"https://api.github.com/users/Sj3rd/repos","events_url":"https://api.github.com/users/Sj3rd/events{/privacy}","received_events_url":"https://api.github.com/users/Sj3rd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-09T16:48:53Z","updated_at":"2018-11-09T16:48:53Z","closed_at":null,"author_association":"NONE","body":"When loggin in with a token, an error is given:\r\n```\r\nsomething went wrong: TypeError: setToken(...).then is not a function\r\n    at \\node_modules\\magister.js\\lib\\magister.js:522:36\r\n    at Generator.next (<anonymous>)\r\n    at step (\\node_modules\\magister.js\\lib\\magister.js:132:191)\r\n    at \\node_modules\\magister.js\\lib\\magister.js:132:437\r\n    at new Promise (<anonymous>)\r\n    at \\node_modules\\magister.js\\lib\\magister.js:132:99\r\n    at Magister.login (\\node_modules\\magister.js\\lib\\magister.js:589:5)\r\n    at Promise.resolve.then (\\node_modules\\magister.js\\lib\\magister.js:624:28)\r\n    at process._tickCallback (internal/process/next_tick.js:68:7)\r\n```"}}
{"actor":{"display_login":"Sj3rd"}}