Skip to content

Commit

Permalink
fix passport login for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
kaihirota committed Oct 14, 2024
1 parent a01acd5 commit 7c90501
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions Assets/Shared/Scripts/UI/LevelCompleteScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,7 @@ private async void OnContinueWithPassportButtonClicked()
ShowLoading(true);

// Log into Passport
#if (UNITY_ANDROID && !UNITY_EDITOR_WIN) || (UNITY_IPHONE && !UNITY_EDITOR_WIN) || UNITY_STANDALONE_OSX
await Passport.Instance.LoginPKCE();
#else
await Passport.Instance.Login();
#endif

// Successfully logged in
// Save a persistent flag in the game that the player is logged in
Expand Down
4 changes: 0 additions & 4 deletions Assets/Shared/Scripts/UI/MainMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,7 @@ async void OnLogoutButtonClick()
ShowLoading(true);

// Logout
#if (UNITY_ANDROID && !UNITY_EDITOR_WIN) || (UNITY_IPHONE && !UNITY_EDITOR_WIN) || UNITY_STANDALONE_OSX
await passport.LogoutPKCE();
#else
await passport.Logout();
#endif

// Reset the login flag
SaveManager.Instance.IsLoggedIn = false;
Expand Down

0 comments on commit 7c90501

Please sign in to comment.