Apr
26
2024

UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)

Just noticed that Unity Hub has builtin login dialog system hidden inside!

Steps
– Unpack your app.asar, see info https://github.com/unitycoder/UnityHubModding
– Open Unity Hub\resources\app\build\main\services\authService\AuthService.js
// Find line
if ((0, appDefaultProtocolClientHelpers_1.isUnityHubProtocolHandled)()) {
// replace with (to make this “if” be false, so that createLoginWindow gets called instead)
if (1==0 && (0, appDefaultProtocolClientHelpers_1.isUnityHubProtocolHandled)()) {

Alternative way:
– If you cannot or don’t want to modify Unity Hub source, you need to delete/disable UnityHub: protocol from Registry Editor (then built-in sign in dialog will be used) *but this might have other side effects..

Link:
https://github.com/unitycoder/UnityHubModding/tree/main#enable-buildin-login-dialog-no-more-browser-loginlogout-issues-with-multiple-accounts


Leave a comment

Connect

Twitter View LinkedIn profile Youtube Github Join Discord Twitch Instagram BlueSky

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.