{"action":"created","issue":{"url":"https://api.github.com/repos/google/google-api-javascript-client/issues/421","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/421/labels{/name}","comments_url":"https://api.github.com/repos/google/google-api-javascript-client/issues/421/comments","events_url":"https://api.github.com/repos/google/google-api-javascript-client/issues/421/events","html_url":"https://github.com/google/google-api-javascript-client/issues/421","id":313995216,"number":421,"title":"gapi.auth2.authorize throws \"popup_closed_by_user\", when only single google ID is logged in.","user":{"login":"rajatsingla","id":16984468,"avatar_url":"https://avatars3.githubusercontent.com/u/16984468?v=4","gravatar_id":"","url":"https://api.github.com/users/rajatsingla","html_url":"https://github.com/rajatsingla","followers_url":"https://api.github.com/users/rajatsingla/followers","following_url":"https://api.github.com/users/rajatsingla/following{/other_user}","gists_url":"https://api.github.com/users/rajatsingla/gists{/gist_id}","starred_url":"https://api.github.com/users/rajatsingla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajatsingla/subscriptions","organizations_url":"https://api.github.com/users/rajatsingla/orgs","repos_url":"https://api.github.com/users/rajatsingla/repos","events_url":"https://api.github.com/users/rajatsingla/events{/privacy}","received_events_url":"https://api.github.com/users/rajatsingla/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-13T07:22:27Z","updated_at":"2018-05-04T04:28:10Z","closed_at":null,"author_association":"NONE","body":"```js\r\n  window.gapi.auth2.authorize({\r\n    'client_id': '...<client_id>',\r\n    'scope': 'email profile openid',\r\n    'response_type': 'id_token permission'\r\n  }, (response) => {\r\n    successCallback(response);\r\n  });\r\n```\r\nUsing above code to intialize gapi.auth2.authorize\r\n\r\n**Scenarios**\r\n- When multiple accounts are logged in, it opens window for choosing account and all works well.\r\n- **When only one account is logged in, It opens window and immediately closes and throws error \"popup_closed_by_user\"**\r\n- Trying again without refresh, it works.\r\n- Using `prompt: consent`, all works fine in first try even with single logged account.\r\n\r\nLaptop- mac air\r\nOS- macOS sierra\r\nbrowser- Chrome Version 65.0.3325.181 (Official Build) (64-bit)"},"comment":{"url":"https://api.github.com/repos/google/google-api-javascript-client/issues/comments/386503023","html_url":"https://github.com/google/google-api-javascript-client/issues/421#issuecomment-386503023","issue_url":"https://api.github.com/repos/google/google-api-javascript-client/issues/421","id":386503023,"user":{"login":"kongguibin","id":18334513,"avatar_url":"https://avatars0.githubusercontent.com/u/18334513?v=4","gravatar_id":"","url":"https://api.github.com/users/kongguibin","html_url":"https://github.com/kongguibin","followers_url":"https://api.github.com/users/kongguibin/followers","following_url":"https://api.github.com/users/kongguibin/following{/other_user}","gists_url":"https://api.github.com/users/kongguibin/gists{/gist_id}","starred_url":"https://api.github.com/users/kongguibin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kongguibin/subscriptions","organizations_url":"https://api.github.com/users/kongguibin/orgs","repos_url":"https://api.github.com/users/kongguibin/repos","events_url":"https://api.github.com/users/kongguibin/events{/privacy}","received_events_url":"https://api.github.com/users/kongguibin/received_events","type":"User","site_admin":false},"created_at":"2018-05-04T04:28:10Z","updated_at":"2018-05-04T04:28:10Z","author_association":"NONE","body":"Deployed your code to https://gapi-idp.appspot.com/gapi.html, and tested it with one account logged in.\r\nCannot reproduce the bug.\r\n\r\nAs mentioned in https://github.com/google/google-api-javascript-client/issues/431, can you please check whether popup-blocker installed in your browser. Otherwise, please provide detailed platform information and steps to reproduce the bug."}}
{"actor":{"display_login":"kongguibin"}}