Unofficial Amazon Cognito Identity Provider Dart SDK, to easily add user sign-up and sign-in to your mobile and web apps with AWS.
204
stars
93
forks
source link
getSession might throw error when clockDrift not set in SharedPreferences #30
Open
fhuonder opened 5 years ago
Hi,
In
cognito_user.dart
(line 176) there is the codefinal clockDrift = int.parse(await storage.getItem(clockDriftKey)) ?? 0;
When
storage.getItem
returns null it crashes. I think the?? 0
should either be within the brackets or int.tryParse should be used.Regards, Florian