Back

Google Oauth: missing redirect url, appwrite flutter sdk sends wrong redirect URL

  • 0
  • Auth
  • Flutter
Aarush Acharya
26 Jul, 2024, 15:26

I am doing Google Oauth in flutter app using Appwrite

My appwrite is selfhosted running locally on my laptop in a docker container. I had my reasons to tunnel it using Windows dev tunnels

I am attaching images of my configurations and errors,

this is my tunnel URL https://wtjf7zs9-5050.inc1.devtunnels.ms

I do not understand why the error is happening it used to work when i used ngrok for tunneling but then now it is not working, please help

But again in the error details we see the redirect url is localhost oriented so why is that ... that is why i am saying the client does not send the correct redirect url

TL;DR
Developers are encountering issues with Google OAuth in a Flutter app using the Appwrite SDK. The redirect URL is being sent as localhost instead of the correct endpoint. The error occurred after switching from ngrok to Windows dev tunnels for tunneling. The client is not sending the correct redirect URL, causing login credential issues. Be sure to update the client to send the correct redirect URL for successful Google OAuth.
Aarush Acharya
26 Jul, 2024, 15:31

Okay i moved a step further I just added whatever it said as the redirect url so it asked my login creds for google but then as the redirect was localhost it could not resolve itself

Aarush Acharya
26 Jul, 2024, 15:33

Why is the client sending the redirect url to be localhost when it has my endpoint as https://wtjf7zs9-5050.inc1.devtunnels.ms/v1

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more