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
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...
- Courtesy limit reset for non-profit migr...
Hi Team! I'm the architect for a 501(c)(3) non-profit project (Aaria's Blue Elephant) and we just hit our Free plan Database Read limit (currently at 164%). Th...
- RBAC design question
Hi, I am trying to create RBAC so we will have multiple orgs in the app each org will have 3 roles (admin, member and read only) what is the best way to go ab...