
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_unauthorized
"I tried to use the CLI, but it returns user_unauthorized. I’m already logged in with my Appwrite account. Could there be an issue on the cloud side?" `erdene...
- Unable to get account or logout after a ...
I get the following error after a successful login when ever I call account.get() or account.deleteSession(sessionId: "current"). User (role: guests) missing sc...
- [AppwriteException: User (role: guests) ...
User signs in succesfully but after when trying to get currentuser i get the error above. It has been working for month with a user. now i implemented signup a...
