chore: fix lint in new epic claimer
This commit is contained in:
parent
bf0625de8b
commit
2908cbd1f5
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue