diff --git a/lib/google/google_helper.dart b/lib/google/google_helper.dart index bec6e9b..c133ad2 100644 --- a/lib/google/google_helper.dart +++ b/lib/google/google_helper.dart @@ -20,6 +20,7 @@ Future getAuthenticatedGoogleApiHttpClient() async { sheets.SheetsApi.driveReadonlyScope ]); var googleAccount = await signIn.signInSilently(); + googleAccount ??= await signIn.signIn(); if (googleAccount == null) { throw StateError("can not login into google"); }