Microsoft-Rewards-Script icon indicating copy to clipboard operation
Microsoft-Rewards-Script copied to clipboard

login stuck on authentication method (Sign in another way page)

Open dvdstywn opened this issue 3 months ago • 13 comments

after enter the email, it stuck on this page

Image

Edit: that also happen on mobile, it stuck on this page. when I press the other way to sign in, its goto same page on desktop version. Image

dvdstywn avatar Aug 25 '25 01:08 dvdstywn

i have exact same problem and it makes bot stuck, my region is sweden

mrgspeed avatar Aug 25 '25 04:08 mrgspeed

I"m waiting for someone to make a PR, currently don't have time to work on this project.

TheNetsky avatar Aug 25 '25 09:08 TheNetsky

@651Shadow does your fix posted in #298 happen to still handle this error?

[LOG] MOBILE [LOGIN] 2FA handling failed: TimeoutError: page.waitForSelector: Timeout 2000ms exceeded.
Call log:
  - waiting for locator('#displaySign, div[data-testid="displaySign"]>span') to be visible

mgrimace avatar Aug 27 '25 18:08 mgrimace

I made a change in #342, check it out!

hmcdat avatar Aug 30 '25 12:08 hmcdat

I made a change in #342, check it out!

Hi! appreciate your work, its work well on Desktop login, but it still stuck on Mobile.

My headless PC and my laptop show same log, i think they stuck on same page which is get code to sign in page.

Image

Edit: when I click the use your password it will show password page, after I input it manually its show keep me sign in modal but it will dismissed automatically by the script

dvdstywn avatar Aug 31 '25 15:08 dvdstywn

I think you should enable passwordless feature to use your Authenticator app to login, it will be easier to handle in the code.

hmcdat avatar Aug 31 '25 15:08 hmcdat

I think you should enable passwordless feature to use your Authenticator app to login, it will be easier to handle in the code.

how to do that? can you guide me to enable that feature? I dont use authenticator app for this bing account.

edit: this one? i need to install MS authenticator, right?

Image

dvdstywn avatar Aug 31 '25 15:08 dvdstywn

You can follow this instruction. https://support.microsoft.com/en-us/account-billing/how-to-go-passwordless-with-your-microsoft-account-674ce301-3574-4387-a93d-916751764c43

Once done, you will see the code number to press on the app when you're logging into your account.

hmcdat avatar Aug 31 '25 16:08 hmcdat

I think you should enable passwordless feature to use your Authenticator app to login, it will be easier to handle in the code.

Does the script output the code for password less again, #296. Password less still requires the user to input a code in the Authenticator app and the codes weren’t appearing in the script run. I’ve been guessing from among the three possible codes.

mgrimace avatar Aug 31 '25 16:08 mgrimace

I made a change in #342, check it out!

The login.ts in #342 is not working for mobile for me, passwordless enabled on the account:

9/1/2025, 10:56:18 PM] [PID: 65] [LOG] MOBILE [MAIN] Starting browser
[9/1/2025, 10:56:18 PM] [PID: 65] [LOG] MOBILE [LOGIN] Starting login process!
[9/1/2025, 10:56:36 PM] [PID: 65] [WARN] MOBILE [LOGIN] Email field not found
[9/1/2025, 10:56:42 PM] [PID: 65] [LOG] MOBILE [LOGIN] No 2FA skip button found, proceeding with password entry
[9/1/2025, 10:56:54 PM] [PID: 65] [WARN] MOBILE [LOGIN] Password field not found, possibly 2FA required
[9/1/2025, 10:57:30 PM] [PID: 65] [LOG] MOBILE [LOGIN] 2FA handling failed: TimeoutError: page.waitForSelector: Timeout 2000ms exceeded.
Call log:
  - waiting for locator('#displaySign, div[data-testid="displaySign"]>span') to be visible

mgrimace avatar Sep 02 '25 11:09 mgrimace

I made a change in #342, check it out!

The login.ts in #342 is not working for mobile for me, passwordless enabled on the account:

9/1/2025, 10:56:18 PM] [PID: 65] [LOG] MOBILE [MAIN] Starting browser [9/1/2025, 10:56:18 PM] [PID: 65] [LOG] MOBILE [LOGIN] Starting login process! [9/1/2025, 10:56:36 PM] [PID: 65] [WARN] MOBILE [LOGIN] Email field not found [9/1/2025, 10:56:42 PM] [PID: 65] [LOG] MOBILE [LOGIN] No 2FA skip button found, proceeding with password entry [9/1/2025, 10:56:54 PM] [PID: 65] [WARN] MOBILE [LOGIN] Password field not found, possibly 2FA required [9/1/2025, 10:57:30 PM] [PID: 65] [LOG] MOBILE [LOGIN] 2FA handling failed: TimeoutError: page.waitForSelector: Timeout 2000ms exceeded. Call log:

  • waiting for locator('#displaySign, div[data-testid="displaySign"]>span') to be visible

Try to remove the session folder and try again

hmcdat avatar Sep 05 '25 07:09 hmcdat

I made a change in #342, check it out!

The login.ts in #342 is not working for mobile for me, passwordless enabled on the account: 9/1/2025, 10:56:18 PM] [PID: 65] [LOG] MOBILE [MAIN] Starting browser [9/1/2025, 10:56:18 PM] [PID: 65] [LOG] MOBILE [LOGIN] Starting login process! [9/1/2025, 10:56:36 PM] [PID: 65] [WARN] MOBILE [LOGIN] Email field not found [9/1/2025, 10:56:42 PM] [PID: 65] [LOG] MOBILE [LOGIN] No 2FA skip button found, proceeding with password entry [9/1/2025, 10:56:54 PM] [PID: 65] [WARN] MOBILE [LOGIN] Password field not found, possibly 2FA required [9/1/2025, 10:57:30 PM] [PID: 65] [LOG] MOBILE [LOGIN] 2FA handling failed: TimeoutError: page.waitForSelector: Timeout 2000ms exceeded. Call log:

  • waiting for locator('#displaySign, div[data-testid="displaySign"]>span') to be visible

Try to remove the session folder and try again

The issue is that after removing sessions, no 2FA code for passwordless login is posted in the logs:

[9/5/2025, 6:23:03 PM] [PID: 65] [LOG] DESKTOP [LOGIN] No 2FA skip button found, proceeding with password entry

Typically, the code is output in the logs, then I enter it in authenticator. Now its a 1/3 chance guess.

Edit: I may have spoke too soon, I restarted the container after a wrong guess, and it did show the code for mobile in the logs after the restart.

mgrimace avatar Sep 05 '25 22:09 mgrimace

Le script est bloqué sur En attente d’autorisation... j’ai remarqué que le modèle d’utilisation de la clé d’accès apparaît de manière aléatoire après avoir sauté, ce qui bloque le script en attente d’autorisation...

Image

Fix: https://github.com/TheNetsky/Microsoft-Rewards-Script/pull/349

LightZirconite avatar Sep 13 '25 09:09 LightZirconite

关闭2FA认证,在Authenticator中删除就行了

Smithcaige avatar Nov 19 '25 15:11 Smithcaige