-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google-Auth shows Blank popup after clicking on "Not Now" on Suggestions Screen #1189
Comments
Any suggestions here? |
do you have any details to share on the auth setup within your app? |
@jankrynauw Yes. Google scripts are loaded asynchronously after pageLoad event,
Then when our Login Component is loaded, we wait for the parent div element's to be mounted before calling initialize and rendering the button.
|
any suggestions please? |
I have the same problem. I'm trying here, rereading the Google documentation. Anything I find, I'll post it here, bro! |
Any suggestions !?? |
can anyone please suggest something? |
Anyone got anything? |
anyone has anything here? Please? |
Summary
Please notice the url in the popup window is now https://gds.google.com (and earlier it was accounts.google.com).My Google Auth flow in popup window works for most of the google users who have completed their profiles and have added recovery options.
For some of the users who haven't completed their google profile, the following Suggestions screen come up:
Upon clicking on "Not Now",
The auth flow breaks and Blank Screen appears. Please notice that we're being redirected from
gds.google.com
toaccounts.google.com
The error trace in the browser's console is
Cannot read property ‘postMessage’ of undefined
I feel the popup lost it's reference to my website's window in that redirection from accounts.google.com to gds.google.com
My webapp has the header
Cross-Origin-Opener-Policy: same-origin-allow-popups
set.Browser(s)/Version(s)
All browsers
Expected Behavior
After clicking on "Not Now" in the Suggestions should continue to authenticate and call the callback registered in the initialize statement.
window.google.accounts.id.initialize({callback})
Actual Behavior
After clicking on "Not Now" in the Suggestions screen, popup goes blank and browser gives the following error in console
Cannot read property ‘postMessage’ of undefined
The text was updated successfully, but these errors were encountered: