@@ -69,9 +69,7 @@ public static GoogleSignInConfiguration Configuration {
69
69
if ( theInstance == null || theConfiguration == value || theConfiguration == null ) {
70
70
theConfiguration = value ;
71
71
} 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." ) ;
75
73
}
76
74
}
77
75
@@ -105,7 +103,7 @@ internal GoogleSignIn(ISignInImpl impl) {
105
103
}
106
104
107
105
public void EnableDebugLogging ( bool flag ) {
108
- impl . EnableDebugLogging ( flag ) ;
106
+ impl . EnableDebugLogging ( flag ) ;
109
107
}
110
108
111
109
/// <summary>Starts the authentication process.</summary>
@@ -116,14 +114,13 @@ public void EnableDebugLogging(bool flag) {
116
114
/// </remarks>
117
115
public Task < GoogleSignInUser > SignIn ( ) {
118
116
var tcs = new TaskCompletionSource < GoogleSignInUser > ( ) ;
119
- SignInHelperObject . Instance . StartCoroutine (
120
- impl . SignIn ( ) . WaitForResult ( tcs ) ) ;
117
+ SignInHelperObject . Instance . StartCoroutine ( impl . SignIn ( ) . WaitForResult ( tcs ) ) ;
121
118
return tcs . Task ;
122
119
}
123
120
124
121
public Task < GoogleSignInUser > SignInAsync ( ) {
125
122
var tcs = new TaskCompletionSource < GoogleSignInUser > ( ) ;
126
- impl . SignIn ( ) . WaitForResultAsync ( tcs ) ;
123
+ impl . SignIn ( ) . WaitForResultAsync ( tcs ) . ContinueWith ( ( task ) => { } ) ;
127
124
return tcs . Task ;
128
125
}
129
126
@@ -137,14 +134,13 @@ public Task<GoogleSignInUser> SignInAsync() {
137
134
/// </remarks>
138
135
public Task < GoogleSignInUser > SignInSilently ( ) {
139
136
var tcs = new TaskCompletionSource < GoogleSignInUser > ( ) ;
140
- SignInHelperObject . Instance . StartCoroutine (
141
- impl . SignInSilently ( ) . WaitForResult ( tcs ) ) ;
137
+ SignInHelperObject . Instance . StartCoroutine ( impl . SignInSilently ( ) . WaitForResult ( tcs ) ) ;
142
138
return tcs . Task ;
143
139
}
144
140
145
141
public Task < GoogleSignInUser > SignInSilentlyAsync ( ) {
146
142
var tcs = new TaskCompletionSource < GoogleSignInUser > ( ) ;
147
- impl . SignInSilently ( ) . WaitForResultAsync ( tcs ) ;
143
+ impl . SignIn ( ) . WaitForResultAsync ( tcs ) . ContinueWith ( ( task ) => { } ) ;
148
144
return tcs . Task ;
149
145
}
150
146
0 commit comments