Skip to content
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

bug: Google Login doesn't work on safari #36

Open
WcaleNieWolny opened this issue Oct 26, 2024 · 6 comments
Open

bug: Google Login doesn't work on safari #36

WcaleNieWolny opened this issue Oct 26, 2024 · 6 comments

Comments

@WcaleNieWolny
Copy link
Contributor

WcaleNieWolny commented Oct 26, 2024

If you try to use login via Google on Safari the login will fail.

I tested both macOS Safari and iOS Safair

@WcaleNieWolny WcaleNieWolny changed the title bug: Google Login doesn't work on IOS safari bug: Google Login doesn't work on safari Oct 26, 2024
@playaz87
Copy link

Also experiencing this.

The first time SocialLogin.login() is called on Safari it gives this error:

[GSI_LOGGER]: Failed to open popup window on url: https://accounts.google.com/o/oauth2/v2/auth?.... Maybe blocked by the browser?

The second time it works.

@WcaleNieWolny
Copy link
Contributor Author

What version of the plugin do you use?

@playaz87
Copy link

playaz87 commented Dec 10, 2024

I'm using 0.0.68-alpha.8

@viktorisacenko
Copy link

viktorisacenko commented Dec 15, 2024

I found out that this bug only occurs if you include the initialization process in the async login function. Then the popup only opens the second time. However, if you set up the initialization process beforehand (in mounted) in vue 3, for example, then it works as expected.

@WcaleNieWolny
Copy link
Contributor Author

Yes, this is somewhat to be expected. Initialize will load external scripts from Google by creating a "script" tag. This takes time, and I don't think the plugin awaits the scrips to finish loading before returning from initialize.

@riderx
Copy link
Contributor

riderx commented Jan 1, 2025

Can we add it to the doc?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants