Skip to content
Back

Need help on Flutter OAuth2

  • 0
  • Android
  • Flutter
  • Apple
  • Auth
Olatunji Babajide
29 Apr, 2025, 11:04

Am trying to use Appwrite OAuth (google, apple and facebook), am been on it for sometimes now which have tried many things but still not able to make it work:

Expectation: able to authenticate users with Appwrite OAuth system.

Behavior:
using Apple provider: it is opening the apple signin page, but after login and all, it get stuck here(image) using Google peovider: it works for andriod 11 and below, but on andriod 13 and above after redirecting back into the app (Error signing in with 2Google: type 'Null' is not a subtype of type 'bool')

Using : appwrite^15.0.1 dependency_overrides: flutter_web_auth_2: 4.1.0

TL;DR
Developers are facing issues with implementing Appwrite OAuth (Google, Apple, Facebook) in Flutter. The Apple provider is getting stuck after login, and the Google provider is throwing an error on Android 13 and above. They're using appwrite^15.0.1 and dependency_overrides for flutter_web_auth_2: 4.1.0. Solution: - For the Apple provider issue, check the configuration and ensure the callback URLs are correctly set. - For the Google provider error, consider updating to the latest version of Flutter and checking for any breaking changes causing the subtype error.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more