From 4ef417f62f94f583d0b32a38e573b2efc193d806 Mon Sep 17 00:00:00 2001 From: Jimmy Vo Date: Mon, 14 Apr 2025 13:01:49 -0400 Subject: [PATCH] [PM-19814] Remove logic for handling authentication since the endpoint will be unauthenticated. --- .../background/phishing-detection.service.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/apps/browser/src/phishing-detection/background/phishing-detection.service.ts b/apps/browser/src/phishing-detection/background/phishing-detection.service.ts index adfbe1c6876..4ef7f4fc39f 100644 --- a/apps/browser/src/phishing-detection/background/phishing-detection.service.ts +++ b/apps/browser/src/phishing-detection/background/phishing-detection.service.ts @@ -189,18 +189,8 @@ export class PhishingDetectionService { ); } catch (error) { this.logService.error("Error details:", error); - if ( - error?.message?.includes("Access token not found") || - error?.message?.includes("Failed to decode access token") - ) { - this.logService.info( - "Authentication required for phishing domain update, will retry when authenticated", - ); - this.scheduleRetry(); - } else { - PhishingDetectionService.logService.error("Failed to update phishing domains:", error); - throw error; - } + + this.scheduleRetry(); } finally { this.isUpdating = false; }