From 21724763caad64c42d17ba3285e7298a1fab53fb Mon Sep 17 00:00:00 2001 From: Devadathan M B Date: Sun, 4 Aug 2024 19:19:34 +0530 Subject: [PATCH] fix: Fix invalid xtoken throwing error --- src/api/utils/getXToken.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/api/utils/getXToken.ts b/src/api/utils/getXToken.ts index f3fa2bb..08da083 100644 --- a/src/api/utils/getXToken.ts +++ b/src/api/utils/getXToken.ts @@ -24,9 +24,6 @@ async function getXToken(bypassData: BypassData): Promise { cache: false, }); const xToken: XToken = response.data; - if (!xToken.x_token) { - throw new InvalidXTokenError(); - } return xToken; } catch (error) { logger.error(`Error in fetching X-Token: ${error}`);