
I am using the Flutter SDK appwrite: 15.0.1 to perform createOAuth2Session. This method successfully opens the "Sign in with Google" screen with the account selection options.
However, after selecting an account, although I can see that an entry is created in Appwrite Auth, the flow redirects back to the same "Sign in with Google" screen with the account selection options, instead of completing the login process.

My setup: AndroidManifest.xml
<activity android:exported="true"
android:name="com.linusu.flutter_web_auth_2.CallbackActivity">
<intent-filter android:label="flutter_web_auth_2">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="appwrite-callback-67ec7d3a002677dbcf65" />
</intent-filter>
</activity>

OAuth2 Google Sign-In Redirect Loop in AppWrite Flutter SDK (v15.0.1)

what's your code?

Let me share you

here is the code

can you share more of the manifest?

what if you remove await _checkSessions();
?

I already tried but got same issue

Do you mean AndroidManifest.xml?

AndroidManifest.xml

android:launchMode="singleTop"
looks good...

maybe app_links
is causing issues?

I am not using it. let me remove from the pubspec.yml and try it.

I tried to remove that but not worked for more information see this logs if you can Understand!
Recommended threads
- User Authentication through REST API
Hey everyone, I’m looking for some guidance on the best way to authenticate frontend requests to my API gateway using Appwrite sessions. Right now, I'm trying ...
- Delete account on authentication
I'm building an authentication that need to a user a choice of delete their account when they need and on the documentation, if I find delete sessions or sessio...
- I have an error oauth with Microsoft
invalid_request: The provided value for the input parameter 'redirect_uri' is not valid. The expected value is a URI which matches a redirect URI registered for...
