File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,15 @@ class GoogleCloudProvider {
2727 var googleSignInAccount = await _googleSignIn.signIn ();
2828 final GoogleSignInAuthentication ? googleAuth =
2929 await googleSignInAccount? .authentication;
30- final credential = GoogleAuthProvider .credential (
31- accessToken: googleAuth? .accessToken,
32- idToken: googleAuth? .idToken,
33- );
34- await _firebaseAuthInstance.signInWithCredential (credential);
30+ if (googleAuth != null )
31+ {
32+ final credential = GoogleAuthProvider .credential (
33+ accessToken: googleAuth? .accessToken,
34+ idToken: googleAuth? .idToken,
35+ );
36+ await _firebaseAuthInstance.signInWithCredential (credential);
37+ }
38+
3539
3640 if (googleSignInAccount != null ) {
3741 // Process successful sign-in
You can’t perform that action at this time.
0 commit comments