Skip to content

Popup window closed with "useGoogleLogin" before operation completed. #378

@brightdev0404

Description

@brightdev0404
{
    "message": "Popup window closed",
    "stack": "Error: Popup window closed\n    at new <anonymous> (https://accounts.google.com/gsi/client:81:28)\n    at Ds.D (https://accounts.google.com/gsi/client:115:365)\n    at Ne (https://accounts.google.com/gsi/client:108:460)\n    at Object.dispatchEvent (https://accounts.google.com/gsi/client:107:342)\n    at Object.I (https://accounts.google.com/gsi/client:111:551)",
    "type": "popup_closed"
}
const signinWithGoogle = useGoogleLogin({
  error_callback(nonOAuthError) {
    console.log("nonOAuthError111111111111111", nonOAuthError);
  },
  onNonOAuthError(nonOAuthError) {
    console.log("nonOAuthError => : ", nonOAuthError);
  },
  onSuccess: (codeResponse) => signInWithGoogleHandler(codeResponse),
  onError: (error) => console.log("Login Failed:", error),
});

In my local, it's working well, but after pushing to domain, it doesn't work. In the production, it opens the pop-up window, and it's still open, but I am getting above error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions