
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
- Failing to run document operations on sd...
Could someone point me in the right direction I'm going in cirlces. I have a problem with sdks and my self-hosted server in production (for ~3 years) I have bee...
- Functions fail to deploy after switching...
Hi <@1087889306208718959> , after switching my self-hosted Appwrite instance to use AWS S3 as the storage backend, my Cloud Functions stopped working. I’m runni...
- Question about the DB
Hello, I am using the database with this configuration, and when I query an operator user, the company ID shows null; however, in the AppWrite console, the docu...
