diff --git a/epic-games.js b/epic-games.js index eba402b..9b56c46 100644 --- a/epic-games.js +++ b/epic-games.js @@ -83,7 +83,7 @@ try { await page.waitForNavigation({ url: '**/id/login/mfa**'}).then(async () => { 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 ...'); const otp = await prompt({type: 'number', message: 'Enter two-factor sign in code', validate: n => n.toString().length == 6 || 'The code must be 6 digits!'}); - await page.type('input[name="code-input-0"]', otp); + await page.type('input[name="code-input-0"]', otp.toString()); await page.click('button[type="submit"]'); }); }