@@ -47,7 +47,7 @@ public async Task<FirebaseAuthLink> SignInWithCustomTokenAsync(string customToke
47
47
{
48
48
string content = $ "{{\" token\" :\" { customToken } \" ,\" returnSecureToken\" :true}}";
49
49
FirebaseAuthLink firebaseAuthLink = await this . ExecuteWithPostContentAsync ( GoogleCustomAuthUrl , content ) . ConfigureAwait ( false ) ;
50
- firebaseAuthLink . User = await this . GetUserAsync ( firebaseAuthLink . FirebaseToken ) ;
50
+ firebaseAuthLink . User = await this . GetUserAsync ( firebaseAuthLink . FirebaseToken ) . ConfigureAwait ( false ) ;
51
51
return firebaseAuthLink ;
52
52
}
53
53
@@ -59,9 +59,9 @@ public async Task<FirebaseAuthLink> SignInWithCustomTokenAsync(string customToke
59
59
public async Task < User > GetUserAsync ( string firebaseToken )
60
60
{
61
61
var content = $ "{{\" idToken\" :\" { firebaseToken } \" }}";
62
- var response = await this . client . PostAsync ( new Uri ( string . Format ( GoogleGetUser , this . authConfig . ApiKey ) ) , new StringContent ( content , Encoding . UTF8 , "application/json" ) ) ;
62
+ var response = await this . client . PostAsync ( new Uri ( string . Format ( GoogleGetUser , this . authConfig . ApiKey ) ) , new StringContent ( content , Encoding . UTF8 , "application/json" ) ) . ConfigureAwait ( false ) ;
63
63
64
- JObject resultJson = JObject . Parse ( await response . Content . ReadAsStringAsync ( ) ) ;
64
+ JObject resultJson = JObject . Parse ( await response . Content . ReadAsStringAsync ( ) . ConfigureAwait ( false ) ) ;
65
65
var user = JsonConvert . DeserializeObject < User > ( resultJson [ "users" ] . First ( ) . ToString ( ) ) ;
66
66
return user ;
67
67
}
@@ -72,7 +72,7 @@ public async Task<User> GetUserAsync(string firebaseToken)
72
72
/// <param name="auth"> The authenticated user to verify email address. </param>
73
73
public async Task < User > GetUserAsync ( FirebaseAuth auth )
74
74
{
75
- return await GetUserAsync ( auth . FirebaseToken ) ;
75
+ return await this . GetUserAsync ( auth . FirebaseToken ) . ConfigureAwait ( false ) ;
76
76
}
77
77
78
78
/// <summary>
@@ -140,7 +140,7 @@ public async Task<FirebaseAuthLink> CreateUserWithEmailAndPasswordAsync(string e
140
140
if ( sendVerificationEmail )
141
141
{
142
142
//send verification email
143
- await SendEmailVerificationAsync ( signup ) ;
143
+ await this . SendEmailVerificationAsync ( signup ) . ConfigureAwait ( false ) ;
144
144
}
145
145
146
146
return signup ;
@@ -167,8 +167,8 @@ public async Task DeleteUserAsync(string firebaseToken)
167
167
168
168
try
169
169
{
170
- var response = await this . client . PostAsync ( new Uri ( string . Format ( GoogleDeleteUserUrl , this . authConfig . ApiKey ) ) , new StringContent ( content , Encoding . UTF8 , "application/json" ) ) ;
171
- responseData = await response . Content . ReadAsStringAsync ( ) ;
170
+ var response = await this . client . PostAsync ( new Uri ( string . Format ( GoogleDeleteUserUrl , this . authConfig . ApiKey ) ) , new StringContent ( content , Encoding . UTF8 , "application/json" ) ) . ConfigureAwait ( false ) ;
171
+ responseData = await response . Content . ReadAsStringAsync ( ) . ConfigureAwait ( false ) ;
172
172
173
173
response . EnsureSuccessStatusCode ( ) ;
174
174
}
@@ -211,7 +211,7 @@ public async Task SendEmailVerificationAsync(string firebaseToken)
211
211
/// <param name="auth"> The authenticated user to verify email address. </param>
212
212
public async Task SendEmailVerificationAsync ( FirebaseAuth auth )
213
213
{
214
- await SendEmailVerificationAsync ( auth . FirebaseToken ) ;
214
+ await this . SendEmailVerificationAsync ( auth . FirebaseToken ) . ConfigureAwait ( false ) ;
215
215
}
216
216
217
217
/// <summary>
@@ -237,7 +237,7 @@ public async Task<FirebaseAuthLink> LinkAccountsAsync(string firebaseToken, stri
237
237
/// <returns> The <see cref="FirebaseAuthLink"/>. </returns>
238
238
public async Task < FirebaseAuthLink > LinkAccountsAsync ( FirebaseAuth auth , string email , string password )
239
239
{
240
- return await LinkAccountsAsync ( auth . FirebaseToken , email , password ) ;
240
+ return await this . LinkAccountsAsync ( auth . FirebaseToken , email , password ) . ConfigureAwait ( false ) ;
241
241
}
242
242
243
243
/// <summary>
@@ -264,7 +264,7 @@ public async Task<FirebaseAuthLink> LinkAccountsAsync(string firebaseToken, Fire
264
264
/// <returns> The <see cref="FirebaseAuthLink"/>. </returns>
265
265
public async Task < FirebaseAuthLink > LinkAccountsAsync ( FirebaseAuth auth , FirebaseAuthType authType , string oauthAccessToken )
266
266
{
267
- return await LinkAccountsAsync ( auth . FirebaseToken , authType , oauthAccessToken ) ;
267
+ return await this . LinkAccountsAsync ( auth . FirebaseToken , authType , oauthAccessToken ) . ConfigureAwait ( false ) ;
268
268
}
269
269
270
270
/// <summary>
@@ -279,8 +279,8 @@ public async Task<ProviderQueryResult> GetLinkedAccountsAsync(string email)
279
279
280
280
try
281
281
{
282
- var response = await this . client . PostAsync ( new Uri ( string . Format ( GoogleCreateAuthUrl , this . authConfig . ApiKey ) ) , new StringContent ( content , Encoding . UTF8 , "application/json" ) ) ;
283
- responseData = await response . Content . ReadAsStringAsync ( ) ;
282
+ var response = await this . client . PostAsync ( new Uri ( string . Format ( GoogleCreateAuthUrl , this . authConfig . ApiKey ) ) , new StringContent ( content , Encoding . UTF8 , "application/json" ) ) . ConfigureAwait ( false ) ;
283
+ responseData = await response . Content . ReadAsStringAsync ( ) . ConfigureAwait ( false ) ;
284
284
285
285
response . EnsureSuccessStatusCode ( ) ;
286
286
@@ -302,9 +302,9 @@ public async Task<FirebaseAuthLink> RefreshAuthAsync(FirebaseAuth auth)
302
302
303
303
try
304
304
{
305
- var response = await this . client . PostAsync ( new Uri ( string . Format ( GoogleRefreshAuth , this . authConfig . ApiKey ) ) , new StringContent ( content , Encoding . UTF8 , "application/json" ) ) ;
305
+ var response = await this . client . PostAsync ( new Uri ( string . Format ( GoogleRefreshAuth , this . authConfig . ApiKey ) ) , new StringContent ( content , Encoding . UTF8 , "application/json" ) ) . ConfigureAwait ( false ) ;
306
306
307
- responseData = await response . Content . ReadAsStringAsync ( ) ;
307
+ responseData = await response . Content . ReadAsStringAsync ( ) . ConfigureAwait ( false ) ;
308
308
var refreshAuth = JsonConvert . DeserializeObject < RefreshAuth > ( responseData ) ;
309
309
310
310
return new FirebaseAuthLink
@@ -336,8 +336,8 @@ private async Task<FirebaseAuthLink> ExecuteWithPostContentAsync(string googleUr
336
336
337
337
try
338
338
{
339
- var response = await this . client . PostAsync ( new Uri ( string . Format ( googleUrl , this . authConfig . ApiKey ) ) , new StringContent ( postContent , Encoding . UTF8 , "application/json" ) ) ;
340
- responseData = await response . Content . ReadAsStringAsync ( ) ;
339
+ var response = await this . client . PostAsync ( new Uri ( string . Format ( googleUrl , this . authConfig . ApiKey ) ) , new StringContent ( postContent , Encoding . UTF8 , "application/json" ) ) . ConfigureAwait ( false ) ;
340
+ responseData = await response . Content . ReadAsStringAsync ( ) . ConfigureAwait ( false ) ;
341
341
342
342
response . EnsureSuccessStatusCode ( ) ;
343
343
0 commit comments