Skip to content

Commit e374182

Browse files
committed
refactor: redirect uris
1 parent 7919787 commit e374182

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

Assets/Shared/Scripts/UI/MainMenu.cs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -63,25 +63,6 @@ async void OnEnable()
6363
SaveManager.Instance.IsLoggedIn = false;
6464
}
6565

66-
// Check if the player is supposed to be logged in
67-
if (SaveManager.Instance.IsLoggedIn)
68-
{
69-
// Check if there are credentials saved
70-
bool hasCredentialsSaved = await Passport.Instance.HasCredentialsSaved();
71-
if (hasCredentialsSaved)
72-
{
73-
// Try to log in using saved credentials
74-
bool success = await Passport.Instance.Login(useCachedSession: true);
75-
// Update the login flag
76-
SaveManager.Instance.IsLoggedIn = success;
77-
}
78-
else
79-
{
80-
// No saved credentials to re-login the player, reset the login flag
81-
SaveManager.Instance.IsLoggedIn = false;
82-
}
83-
}
84-
8566
ShowLoading(false);
8667
ShowStartButton(true);
8768
}

0 commit comments

Comments
 (0)