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 @@ -296,7 +296,7 @@ private async Task<string> GetOAuthAccessTokenFromCacheOrRefreshToken(string ref
296
296
if ( accessToken != null )
297
297
{
298
298
// No access token in the cache, so get a new one from the refresh token.
299
- await RefreshOAuthAccessToken ( refreshToken ) ;
299
+ await RefreshOAuthAccessToken ( refreshToken ) . ConfigureAwait ( false ) ;
300
300
accessToken = _appCaches . RuntimeCache . Get ( AccessTokenCacheKey ) . ToString ( ) ;
301
301
}
302
302
@@ -365,7 +365,8 @@ private async Task<HttpResponseMessage> GetResponse(
365
365
break ;
366
366
case AuthenticationMode . OAuth :
367
367
requestMessage . Headers . Authorization =
368
- new AuthenticationHeaderValue ( "Bearer" , await GetOAuthAccessTokenFromCacheOrRefreshToken ( authenticationDetails . RefreshToken ) ) ;
368
+ new AuthenticationHeaderValue ( "Bearer" ,
369
+ await GetOAuthAccessTokenFromCacheOrRefreshToken ( authenticationDetails . RefreshToken ) . ConfigureAwait ( false ) ) ;
369
370
break ;
370
371
}
371
372
}
You can’t perform that action at this time.
0 commit comments