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

Google login on web gets a 400 error: redirect_uri_mismatch #135

Open
Alesvetina opened this issue Feb 18, 2025 · 2 comments
Open

Google login on web gets a 400 error: redirect_uri_mismatch #135

Alesvetina opened this issue Feb 18, 2025 · 2 comments

Comments

@Alesvetina
Copy link

I am migrating from @codetrix-studio/capacitor-google-auth in my Ionic project, following the documentation.
I call:
await SocialLogin.initialize({
google: {
webClientId: 'xxx.apps.googleusercontent.com',
iOSClientId: 'yyy.apps.googleusercontent.com',
}
});

And then the login:
const user: any = await SocialLogin.login({
provider: 'google',
options: {
scopes: ['email', 'profile'],
forceRefreshToken: true,
disableOneTap: true
}
});

On the web i get: Error 400: redirect_uri_mismatch.
Android works fine.

I don't have any Authorized redirect URIs in my Google Console.

Please assist.

Thank you very much!

@vanntrong
Copy link

I have the same problem. Did you solve it?

@Alesvetina
Copy link
Author

I have the same problem. Did you solve it?

No, not yet unfortunately

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

2 participants