{"action":"closed","issue":{"url":"https://api.github.com/repos/auth0/auth0.js/issues/192","repository_url":"https://api.github.com/repos/auth0/auth0.js","labels_url":"https://api.github.com/repos/auth0/auth0.js/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/auth0/auth0.js/issues/192/comments","events_url":"https://api.github.com/repos/auth0/auth0.js/issues/192/events","html_url":"https://github.com/auth0/auth0.js/issues/192","id":174592521,"number":192,"title":"Some Callbacks of getDelegationToken return non Error Object in err param","user":{"login":"cancan101","id":51059,"avatar_url":"https://avatars.githubusercontent.com/u/51059?v=3","gravatar_id":"","url":"https://api.github.com/users/cancan101","html_url":"https://github.com/cancan101","followers_url":"https://api.github.com/users/cancan101/followers","following_url":"https://api.github.com/users/cancan101/following{/other_user}","gists_url":"https://api.github.com/users/cancan101/gists{/gist_id}","starred_url":"https://api.github.com/users/cancan101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cancan101/subscriptions","organizations_url":"https://api.github.com/users/cancan101/orgs","repos_url":"https://api.github.com/users/cancan101/repos","events_url":"https://api.github.com/users/cancan101/events{/privacy}","received_events_url":"https://api.github.com/users/cancan101/received_events","type":"User","site_admin":false},"labels":[{"id":58189882,"url":"https://api.github.com/repos/auth0/auth0.js/labels/bug","name":"bug","color":"fc2929","default":true},{"id":446868430,"url":"https://api.github.com/repos/auth0/auth0.js/labels/P4:%20Nice%20to%20have","name":"P4: Nice to have","color":"fef2c0","default":false},{"id":446867476,"url":"https://api.github.com/repos/auth0/auth0.js/labels/S2:%20Inconvenient","name":"S2: Inconvenient","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-01T18:25:43Z","updated_at":"2016-12-07T18:15:26Z","closed_at":"2016-12-07T18:15:26Z","body":"Most of the code paths pass an error object, but this path does not: https://github.com/auth0/auth0.js/blob/d0680993bebaf4efaebf229049a15203b4445dda/index.js#L1589-L1591\n\nI think you want:\n\n``` js\ncallback(new LoginError(err.status, JSON.parse(err.responseText)))\n```\n"}}
{"actor":{"display_login":"hzalaz"}}