Supabase + Flutter Android + Google Oauth2 = NOT WORKING
See original GitHub issueI am using Flutter to make an Android App. I am following this tutorial: https://supabase.com/docs/guides/auth/auth-google
However, Google shows an error when I try to authenticate: error 400 redirect_uri_mismatch
This is a mobile screenshot of the google error: https://imgur.com/a/FBUlCAF
This is a screenshot of the settings for google “Client ID for Web application” as per the tutorial’s instruction even tho, I am making an android app, not a web app: https://imgur.com/a/wBknYQV
This is how I am calling the provider:
googleAuth() {
Supabase.instance.client.auth.signInWithProvider(
Provider.google,
);
}
NOTE: The tutorial says:
Enter your callback URI in the
Valid OAuth Redirect URIs
box.
but I can’t find this setting in Google, it does not exist. Either, I am doing something wrong or supabase’s tutorial is out of date. Do I need a custom domain or something special to make supabase + google Oauth
function correctly?
If you need more info, let me know and I will add it
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
@seenickcode its fixed in latest version.
Will close this one because it is fixed! Thanks guys!