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
- Bug report: Race condition in Flutter SD...
Hi team, I've found an intermittent bug in the Flutter SDK (v20.3.0) when using `createOAuth2Session` on Android. **Symptoms** After `createOAuth2Session` re...
- New Build not visible on Domain
I pushed some new code to my Appwrite Site and the build succeeded and is shown as active. Yet, I can only see the new version of the site on Appwrite's provide...
- DNS bug
Hello, we found bug at the Appwrite Cloud Domains, when changing **only ** the Comment of CNAME, we get error DNS record already exists. Some DNS types do not ...