Skip to content

Commit 4d71296

Browse files
acoumbCopilot
andauthored
Update src/Umbraco.Cms.Integrations.Crm.Hubspot.Core/Controllers/FormsController.cs
Co-authored-by: Copilot <[email protected]>
1 parent 6b1e420 commit 4d71296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Umbraco.Cms.Integrations.Crm.Hubspot.Core/Controllers/FormsController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public async Task<ResponseDto> ValidateAccessToken()
240240
{
241241
// Attempt to refresh the access token
242242
var refreshAccessTokenResponse = await _authorizationService.RefreshAccessTokenAsync();
243-
if (string.IsNullOrEmpty(refreshAccessTokenResponse) || refreshAccessTokenResponse == BaseAuthorizationService.ErrorPrefix)
243+
if (string.IsNullOrEmpty(refreshAccessTokenResponse) || refreshAccessTokenResponse.StartsWith(BaseAuthorizationService.ErrorPrefix))
244244
{
245245
return new ResponseDto
246246
{

0 commit comments

Comments
 (0)