Clancey / simple_auth

The Simplest way to Authenticate in Flutter
MIT License
352 stars 108 forks source link

Error in new simple_auth 2.0.10 #159

Open MathiasTP opened 3 years ago

MathiasTP commented 3 years ago

Hi Clancey, thanks for updating. If i use the new 2.0.10 packages, i get this error on runtime: ../../flutter/.pub-cache/hosted/pub.dartlang.org/simple_auth_flutter-2.0.10/lib/simple_auth_flutter.dart:31:34: Error: A value of type 'String?' can't be assigned to a variable of type 'String' because 'String?' is nullable and 'String' isn't. authenticators[authenticator.identifier] = authenticator;

MathiasTP commented 3 years ago

Seems to be an easy fix just the change the type of String to String?

MathiasTP commented 3 years ago

Fixed it locally by added ! after .identifier..