question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Supabase + Flutter Android + Google Oauth2 = NOT WORKING

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Shiba-Karcommented, Jul 3, 2022

@seenickcode its fixed in latest version.

0reactions
dshukertjrcommented, Jul 3, 2022

Will close this one because it is fixed! Thanks guys!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Supabase + Flutter Android + Google Oauth2 = NOT ...
r/Supabase - Supabase + Flutter Android + Google Oauth2 = NOT WORKING. How can I fix this error? I am using Flutter to...
Read more >
Dive into Supabase Auth on Flutter: Email/Password, Google ...
Hi there, in this article, we are gonna build a simple application showing authentication flow using Flutter and Supabase....
Read more >
Part Five: Google Oauth
Connecting social logins such as Google, GitHub, or Facebook couldn't be easier. In this guide we'll walk you through the process of connecting...
Read more >
flutter - supabase password recover
I fixed the problem by changing host name turns out I was setting it wrong in manifest and one more thing is that...
Read more >
Using Supabase for authentication in Flutter
Firebase is a Backend-as-a-Service (BaaS) by Google that enables developers to create iOS, Android, and web apps with out-of-the-box support to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found