vrcx-team / VRCX

Friendship management tool for VRChat
MIT License
912 stars 167 forks source link

[Bug] Unable to log in #832

Open fsguoguo opened 3 weeks ago

fsguoguo commented 3 weeks ago

When I enter the two-factor authentication code, I can't log in. The prompt window for entering the verification code pops up again, asking me to input the code, and this keeps repeating in a loop.

Natsumi-sama commented 3 weeks ago

Make sure VRCX is fully up-to-date, remove your saved account (this wont remove your data) then try login again.

fsguoguo commented 3 weeks ago

My VRCX version is already up to date, and I have never successfully logged into VRCX, so it seems I don't have the option to remove the account.

Natsumi-sama commented 3 weeks ago

Try open a incognito window in your web browser and try login to the VRChat website there just to be 100% sure it's a VRCX related issue. Otherwise press Ctrl + Shift + I in VRCX and select the console and send a screenshot of any error here.

fsguoguo commented 3 weeks ago

I successfully logged into the VRChat website on a new device, but I still failed in VRCX. Here is the screenshot of the error. 屏幕截图 2024-06-25 191154

Natsumi-sama commented 3 weeks ago

I don't see any failed 2FA attempt here, hmmm could you restart the program, run $app.debug = true; $app.debugWebRequests = true; and try again with screenshot.

fsguoguo commented 3 weeks ago

屏幕截图 2024-06-25 191154

Natsumi-sama commented 3 weeks ago

That's very odd and might be something on VRChats end, I'm not entirely sure though, could be related to the other issues Chinese people have been having with VPNs if you're from there. I'll think about it a bit more but I've never seen this one before.

Natsumi-sama commented 3 weeks ago

Wait no I'm blind it's returning an error can you click on that to expand it?

fsguoguo commented 3 weeks ago

Which link shoud I click? Is it app.js:489:27 ?

fsguoguo commented 3 weeks ago

屏幕截图 2024-06-25 195553

Natsumi-sama commented 3 weeks ago

Click here a

fsguoguo commented 3 weeks ago

屏幕截图 2024-06-25 200048

Natsumi-sama commented 3 weeks ago

Hmmm if I were to guess your cookies are being cleared before 2FA, we can verify this by running atob(await webApiService.getCookies()); after attempting to login (although you shouldn't share this detail with a screenshot because it contains your auth token) maybe your system time is so far out of sync that your cookies are expiring before they can save.

fsguoguo commented 3 weeks ago

屏幕截图 2024-06-25 203553 Doesn't look like it expired, does it?

Natsumi-sama commented 3 weeks ago

Looks correct to me, damn I'm back to being clueless as to what is going on there.