nmrugg / UE4Launcher

The Unofficial Cross-Platform UE4 Launcher
MIT License
115 stars 19 forks source link

Unable to login through Google #6

Open gamefb opened 4 years ago

gamefb commented 4 years ago

I have two factor authentication enabled on my Google account. After hitting "yes" on my phone, it returns with access denied to guestId: 2

apo-egix commented 4 years ago

same for me

though i could log into my account without using google

nmrugg commented 4 years ago

Thanks for the feedback. I haven't tested that out yet. I'll try to work on that.

nitanmarcel commented 3 years ago

@nmrugg this is the error shown after entering the email address:

image

nitanmarcel commented 3 years ago

@nmrugg I've tried changing the user agent but it didn't worked at all since the login is open in another window which doesn't have the correct user agent set.

When you press the login button it returns an url which you can use in another window and set the headers to Chrome.

mrjuan1 commented 3 years ago

Any news on this? I also get the image @nitanmarcel posted above...

mrjuan1 commented 3 years ago

Got it to work.

In main.js around line 700 (the startup function), add the following at the start of the function:

electron.session.defaultSession.webRequest.onBeforeSendHeaders((details, callback) => {
    details.requestHeaders["User-Agent"] = "Chrome";
    callback({ cancel: false, requestHeaders: details.requestHeaders });
});

Start the launcher, refresh the vault to sign in. All 2FA stuff works too. Vault took a bit to refresh, so just be patient there.