File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Umbraco.Forms.Integrations.Crm.Hubspot/Services Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ private async Task<string> GetOAuthAccessTokenFromCacheOrRefreshToken(string ref
287
287
if ( string . IsNullOrEmpty ( accessToken ) )
288
288
{
289
289
// No access token in the cache, so get a new one from the refresh token.
290
- await RefreshOAuthAccessToken ( refreshToken ) ;
290
+ await RefreshOAuthAccessToken ( refreshToken ) . ConfigureAwait ( false ) ;
291
291
accessToken = _appCaches . RuntimeCache . GetCacheItem < string > ( AccessTokenCacheKey ) ;
292
292
}
293
293
@@ -353,7 +353,8 @@ private async Task<HttpResponseMessage> GetResponse(
353
353
break ;
354
354
case AuthenticationMode . OAuth :
355
355
requestMessage . Headers . Authorization =
356
- new AuthenticationHeaderValue ( "Bearer" , await GetOAuthAccessTokenFromCacheOrRefreshToken ( authenticationDetails . RefreshToken ) ) ;
356
+ new AuthenticationHeaderValue ( "Bearer" ,
357
+ await GetOAuthAccessTokenFromCacheOrRefreshToken ( authenticationDetails . RefreshToken ) . ConfigureAwait ( false ) ) ;
357
358
break ;
358
359
}
359
360
}
You can’t perform that action at this time.
0 commit comments