Skip to content

Commit 85edc39

Browse files
Add configureawait for the asynchronous operations
1 parent ec2bb58 commit 85edc39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Firebase.Auth/FirebaseAuthProvider.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ public async Task<User> GetUserAsync(string firebaseToken)
6565
var responseData = "N/A";
6666
try
6767
{
68-
var response = await this.client.PostAsync(new Uri(string.Format(GoogleGetUser, this.authConfig.ApiKey)), new StringContent(content, Encoding.UTF8, "application/json"));
69-
responseData = await response.Content.ReadAsStringAsync();
68+
var response = await this.client.PostAsync(new Uri(string.Format(GoogleGetUser, this.authConfig.ApiKey)), new StringContent(content, Encoding.UTF8, "application/json")).ConfigureAwait(false);
69+
responseData = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
7070
response.EnsureSuccessStatusCode();
7171

7272
var resultJson = JObject.Parse(responseData);

0 commit comments

Comments
 (0)