Skip to content

Commit 351670f

Browse files
committed
eg: TODO locator for 2FA text (email or app?)
1 parent 5babbb6 commit 351670f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

epic-games.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ try {
8686
// handle MFA, but don't await it
8787
page.waitForNavigation({ url: '**/id/login/mfa**'}).then(async () => {
8888
console.log('Enter the security code to continue - This appears to be a new device, browser or location. A security code has been sent to your email address at ...');
89+
// TODO locator for text (email or app?)
8990
const otp = cfg.eg_otpkey && authenticator.generate(cfg.eg_otpkey) || await prompt({type: 'text', message: 'Enter two-factor sign in code', validate: n => n.toString().length == 6 || 'The code must be 6 digits!'}); // can't use type: 'number' since it strips away leading zeros and codes sometimes have them
9091
await page.type('input[name="code-input-0"]', otp.toString());
9192
await page.click('button[type="submit"]');

0 commit comments

Comments
 (0)