diff --git a/src/v0/util/facebookUtils/networkHandler.js b/src/v0/util/facebookUtils/networkHandler.js index da486242e8..223707e4bc 100644 --- a/src/v0/util/facebookUtils/networkHandler.js +++ b/src/v0/util/facebookUtils/networkHandler.js @@ -262,9 +262,9 @@ const errorResponseHandler = (destResponse) => { const { status, errorMessage, stats: errorStatTags } = getStatus(error); if ( isDefinedAndNotNull(errorStatTags) && - errorStatTags?.[TAG_NAMES.ERROR_TYPE] === 'accessTokenExpired' + errorStatTags?.[TAG_NAMES.ERROR_TYPE] === ERROR_TYPES.AUTH ) { - throw new ConfigurationAuthError(`${errorMessage}`); + throw new ConfigurationAuthError(errorMessage); } throw new NetworkError( `${errorMessage || error.message || 'Unknown failure during response transformation'}`,