Skip to content

Commit

Permalink
fix: Fix invalid xtoken throwing error
Browse files Browse the repository at this point in the history
  • Loading branch information
devadathanmb committed Aug 4, 2024
1 parent 1a7387a commit 2172476
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/api/utils/getXToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ async function getXToken(bypassData: BypassData): Promise<XToken | null> {
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}`);
Expand Down

0 comments on commit 2172476

Please sign in to comment.