@@ -69,9 +69,7 @@ public static GoogleSignInConfiguration Configuration {
6969 if ( theInstance == null || theConfiguration == value || theConfiguration == null ) {
7070 theConfiguration = value ;
7171 } else {
72- throw new SignInException ( GoogleSignInStatusCode . DEVELOPER_ERROR ,
73- "DefaultInstance already created. " +
74- " Cannot change configuration after creation." ) ;
72+ throw new SignInException ( GoogleSignInStatusCode . DEVELOPER_ERROR , "DefaultInstance already created. Cannot change configuration after creation." ) ;
7573 }
7674 }
7775
@@ -105,7 +103,7 @@ internal GoogleSignIn(ISignInImpl impl) {
105103 }
106104
107105 public void EnableDebugLogging ( bool flag ) {
108- impl . EnableDebugLogging ( flag ) ;
106+ impl . EnableDebugLogging ( flag ) ;
109107 }
110108
111109 /// <summary>Starts the authentication process.</summary>
@@ -116,14 +114,13 @@ public void EnableDebugLogging(bool flag) {
116114 /// </remarks>
117115 public Task < GoogleSignInUser > SignIn ( ) {
118116 var tcs = new TaskCompletionSource < GoogleSignInUser > ( ) ;
119- SignInHelperObject . Instance . StartCoroutine (
120- impl . SignIn ( ) . WaitForResult ( tcs ) ) ;
117+ SignInHelperObject . Instance . StartCoroutine ( impl . SignIn ( ) . WaitForResult ( tcs ) ) ;
121118 return tcs . Task ;
122119 }
123120
124121 public Task < GoogleSignInUser > SignInAsync ( ) {
125122 var tcs = new TaskCompletionSource < GoogleSignInUser > ( ) ;
126- impl . SignIn ( ) . WaitForResultAsync ( tcs ) ;
123+ impl . SignIn ( ) . WaitForResultAsync ( tcs ) . ContinueWith ( ( task ) => { } ) ;
127124 return tcs . Task ;
128125 }
129126
@@ -137,14 +134,13 @@ public Task<GoogleSignInUser> SignInAsync() {
137134 /// </remarks>
138135 public Task < GoogleSignInUser > SignInSilently ( ) {
139136 var tcs = new TaskCompletionSource < GoogleSignInUser > ( ) ;
140- SignInHelperObject . Instance . StartCoroutine (
141- impl . SignInSilently ( ) . WaitForResult ( tcs ) ) ;
137+ SignInHelperObject . Instance . StartCoroutine ( impl . SignInSilently ( ) . WaitForResult ( tcs ) ) ;
142138 return tcs . Task ;
143139 }
144140
145141 public Task < GoogleSignInUser > SignInSilentlyAsync ( ) {
146142 var tcs = new TaskCompletionSource < GoogleSignInUser > ( ) ;
147- impl . SignInSilently ( ) . WaitForResultAsync ( tcs ) ;
143+ impl . SignIn ( ) . WaitForResultAsync ( tcs ) . ContinueWith ( ( task ) => { } ) ;
148144 return tcs . Task ;
149145 }
150146
0 commit comments