{"action":"created","issue":{"url":"https://api.github.com/repos/google/google-api-javascript-client/issues/25","repository_url":"https://api.github.com/repos/google/google-api-javascript-client","labels_url":"https://api.github.com/repos/google/google-api-javascript-client/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/google/google-api-javascript-client/issues/25/comments","events_url":"https://api.github.com/repos/google/google-api-javascript-client/issues/25/events","html_url":"https://github.com/google/google-api-javascript-client/issues/25","id":53586167,"number":25,"title":"gapi.auth.authorize callback doesn't get called when user closes window","user":{"login":"wonderfly","id":6642209,"avatar_url":"https://avatars.githubusercontent.com/u/6642209?v=3","gravatar_id":"","url":"https://api.github.com/users/wonderfly","html_url":"https://github.com/wonderfly","followers_url":"https://api.github.com/users/wonderfly/followers","following_url":"https://api.github.com/users/wonderfly/following{/other_user}","gists_url":"https://api.github.com/users/wonderfly/gists{/gist_id}","starred_url":"https://api.github.com/users/wonderfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wonderfly/subscriptions","organizations_url":"https://api.github.com/users/wonderfly/orgs","repos_url":"https://api.github.com/users/wonderfly/repos","events_url":"https://api.github.com/users/wonderfly/events{/privacy}","received_events_url":"https://api.github.com/users/wonderfly/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/google/google-api-javascript-client/labels/21+%20stars","name":"21+ stars","color":"FFFFFF"},{"url":"https://api.github.com/repos/google/google-api-javascript-client/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/google/google-api-javascript-client/labels/imported","name":"imported","color":"FFFFFF"},{"url":"https://api.github.com/repos/google/google-api-javascript-client/labels/Milestone-GA","name":"Milestone-GA","color":"FFFFFF"},{"url":"https://api.github.com/repos/google/google-api-javascript-client/labels/Priority-Medium","name":"Priority-Medium","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2015-01-07T01:21:33Z","updated_at":"2016-08-30T18:52:15Z","closed_at":null,"body":"_From [phenome](https://code.google.com/u/phenome/) on March 27, 2012 11:47:59_\n\nWhat steps will reproduce the problem? 1. Fire gapi.auth.authorize(). Wait for popup to open\r\n2. Close the window What is the expected output? What do you see instead? Callback should be called with null parameter, or a token object with error, as per API.\r\n\r\nWhen you DENY the authorization, the callback gets called with null.\r\n::: Reading the API I assumed it would get called with a token object with the error parameter set. Is it really misleading or my interpretation is lacking?\r\n\r\nI actually have no problem with it being called with null, but since there are two cases (the user actively DENYING authorization, or simply closing the window), it would be nice to get a token object with an error describing what happened.\n\n_Original issue: http://code.google.com/p/google-api-javascript-client/issues/detail?id=23_"},"comment":{"url":"https://api.github.com/repos/google/google-api-javascript-client/issues/comments/243541636","html_url":"https://github.com/google/google-api-javascript-client/issues/25#issuecomment-243541636","issue_url":"https://api.github.com/repos/google/google-api-javascript-client/issues/25","id":243541636,"user":{"login":"neilsoult","id":5273521,"avatar_url":"https://avatars.githubusercontent.com/u/5273521?v=3","gravatar_id":"","url":"https://api.github.com/users/neilsoult","html_url":"https://github.com/neilsoult","followers_url":"https://api.github.com/users/neilsoult/followers","following_url":"https://api.github.com/users/neilsoult/following{/other_user}","gists_url":"https://api.github.com/users/neilsoult/gists{/gist_id}","starred_url":"https://api.github.com/users/neilsoult/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neilsoult/subscriptions","organizations_url":"https://api.github.com/users/neilsoult/orgs","repos_url":"https://api.github.com/users/neilsoult/repos","events_url":"https://api.github.com/users/neilsoult/events{/privacy}","received_events_url":"https://api.github.com/users/neilsoult/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T18:52:15Z","updated_at":"2016-08-30T18:52:15Z","body":"Yea, why fix bugs when we can just bloat our code with workarounds! "}}
{"actor":{"display_login":"neilsoult"}}