Google oauth error 400: redirect uri mismatch

Hey guys, im trying to setup google sign in, in my flutter app. When i launch the app(linux) and click the google sign in button, i get redirected to the browser with a google flow giving me error 400: redirect uri mismatch. I found an issue about it, and also followed documentation on this, and added https://<project-ref>.supabase.code/auth/v1/callback to google cloud console web client id uri whitelist, but I still get the error. Any help with this? Thanks, George.
3 Replies
Rotting Christ
Rotting ChristOP9mo ago
GitHub
google oauth error · supabase · Discussion #3658
google oauth error 400 redirect_uri_mismatch android, I don't know what I'm doing wrong as I set everything up from your supabase and google, I hope someone can help me. I have also thought...
Login with Google | Supabase Docs
Use Sign in with Google on the web, in native apps or with Chrome extensions
silentworks
silentworks9mo ago
You need to follow every step of the Login with Google docs. You missed a step hence why you are having this issue.
Rotting Christ
Rotting ChristOP9mo ago
Hey, thanks for responding so fast. I followed the whole supabase docs for google sign in, redirect is only mentioned once, when creating a web client id. ive already added the previously mentioned redirect uri in that section. Did I miss another spot where i need to add it? Edit: Nevermind I found the issue. My redirect uri was indeed set correctly, but supabase didnt complain when i added both the android and web oauth id (I thought it was alright since it said comma separated.).

Did you find this page helpful?