chore: fix lint in new epic claimer
Some checks failed
build-and-push / lint (push) Failing after 5s
build-and-push / sonar (push) Has been skipped
build-and-push / docker (push) Has been skipped

This commit is contained in:
nocci 2025-12-31 12:55:52 +00:00
parent bf0625de8b
commit 2908cbd1f5

View file

@ -3,7 +3,6 @@ import { firefox } from 'playwright-firefox';
import { authenticator } from 'otplib'; import { authenticator } from 'otplib';
import path from 'node:path'; import path from 'node:path';
import { existsSync, readFileSync, writeFileSync } from 'node:fs'; import { existsSync, readFileSync, writeFileSync } from 'node:fs';
import chalk from 'chalk';
import { resolve, jsonDb, datetime, stealth, filenamify, prompt, notify, html_game_list, handleSIGINT } from './src/util.js'; import { resolve, jsonDb, datetime, stealth, filenamify, prompt, notify, html_game_list, handleSIGINT } from './src/util.js';
import { cfg } from './src/config.js'; import { cfg } from './src/config.js';
@ -70,7 +69,7 @@ const exchangeTokenForCookies = async accessToken => {
return cookies; return cookies;
}; };
const getValidAuth = async ({ email, password, otpKey, reuseCookies, cookiesPath }) => { const getValidAuth = async ({ otpKey, reuseCookies, cookiesPath }) => {
if (reuseCookies && existsSync(cookiesPath)) { if (reuseCookies && existsSync(cookiesPath)) {
const cookies = JSON.parse(readFileSync(cookiesPath, 'utf8')); const cookies = JSON.parse(readFileSync(cookiesPath, 'utf8'));
const bearerCookie = cookies.find(c => c.name === BEARER_TOKEN_NAME); const bearerCookie = cookies.find(c => c.name === BEARER_TOKEN_NAME);