Skip to content

Commit

Permalink
refactor: redirect uris
Browse files Browse the repository at this point in the history
  • Loading branch information
nattb8 committed Nov 7, 2024
1 parent 498d7c8 commit 2847a65
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions Assets/Shared/Scripts/UI/MainMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,6 @@ async void OnEnable()
SaveManager.Instance.IsLoggedIn = false;
}

// Check if the player is supposed to be logged in
if (SaveManager.Instance.IsLoggedIn)
{
// Check if there are credentials saved
bool hasCredentialsSaved = await Passport.Instance.HasCredentialsSaved();
if (hasCredentialsSaved)
{
// Try to log in using saved credentials
bool success = await Passport.Instance.Login(useCachedSession: true);
// Update the login flag
SaveManager.Instance.IsLoggedIn = success;
}
else
{
// No saved credentials to re-login the player, reset the login flag
SaveManager.Instance.IsLoggedIn = false;
}
}

ShowLoading(false);
ShowStartButton(true);
}
Expand Down

0 comments on commit 2847a65

Please sign in to comment.