I have been trying to login via google on my flutter app running on windows. The redirect URI is correct in URL state as well as in my code. But I still get
Missing redirect URL
Your OAuth login flow is missing a proper redirect URL. Please check the OAuth docs and send request for new session with a valid callback URL.
This is my flutter code
var _codeListenerServer = await HttpServer.bind('localhost', 0);
print('Listening on localhost:${_codeListenerServer.port}');
_account.createOAuth2Session(provider: "google",success: "http://localhost:${_codeListenerServer.port}/auth/oauth2/success");
I also tired it without the HttpServer.
Edit : Using appwrite cloud and Flutter SDK version 11.0.1 tried it with higher 12.0.1 version as well facing the same problem
Recommended threads
- Cloud function deployment failures
When I run appwrite push functions, select the function I want to deploy, confirm with a YES, is starts deploying but goes into error. I need to repeat the ste...
- Function deployment failed: Unable to re...
Hi Appwrite team, I have been experiencing persistent errors when i attempt to push my appwrite functions. The logs on the deployment detail page on the console...
- One to many 2 way, console UI not correc...
Hey, seems I'm facing the exactly same issue with this one: https://github.com/appwrite/appwrite/issues/6016 Since this Github issue stay open for so long, let ...