Back

It seems Google Authentication is broken

  • 0
  • Self Hosted
  • Auth
iStornZ
10 Jan, 2025, 09:51

Hello all, I'm testing the Google Authentication on a Flutter app and it seems to be broken now (it was working perfectly fine before).

Here is the error I have when trying to log in with Google Account:

_TypeError (type 'Null' is not a subtype of type 'bool')

Here is the stacktrace

TypeScript
#0      new Target.fromMap (package:appwrite/src/models/target.dart:54:19)
#1      new User.fromMap.<anonymous closure> (package:appwrite/src/models/user.dart:103:67)
#2      MappedListIterable.elementAt (dart:_internal/iterable.dart:435:31)
#3      ListIterator.moveNext (dart:_internal/iterable.dart:364:26)
#4      new List.from (dart:core-patch/array_patch.dart:29:17)
#5      new User.fromMap (package:appwrite/src/models/user.dart:103:16)
#6      Account.get (package:appwrite/services/account.dart:23:24)
<asynchronous suspension>
#7      AuthenticationService.getAccount (package:myapp/services/authentication_service.dart:144:23)
<asynchronous suspension>
#8      AuthenticationPresenter.onContinueWithTap (package: myapp/ui/pages/authentication/authentication_presenter.dart:92:9)
<asynchronous suspension>

Do you encounter the same issue now?

TL;DR
Google Authentication is broken in a Flutter app, resulting in a `_TypeError`. Developers should check the SDK version being used and consider upgrading or downgrading.
D5
10 Jan, 2025, 09:57

What SDK version are you using?

D5
10 Jan, 2025, 09:57

Could you try to upgrade the version or downgrade it?

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