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
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support š I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...