Currently, I try to Logout my user with the PlayFabClientAPI.ForgetAllCredentials() call. But I receive a StackOverflow every time I try to do so. Do I miss something?
public static void LogIn(string _email, string _password) { if (m_LoggedIn) { return; } LoginWithEmailAddressRequest loginRequest = new LoginWithEmailAddressRequest { Email = _email, Password = _password }; PlayFabClientAPI.LoginWithEmailAddress(loginRequest, loginResult => { GetPlayerProfileRequest getPlayerProfileRequest = new GetPlayerProfileRequest { PlayFabId = loginResult.PlayFabId }; PlayFabClientAPI.GetPlayerProfile(getPlayerProfileRequest, profileResult => {
// Removed some private code but nothing related to playfab m_LoggedIn = true; }, error => { Debug.Log(error.ErrorMessage); }); }, error => { Debug.Log(error.ErrorMessage); }); } public static void LogOut() { PlayFabClientAPI.ForgetAllCredentials(); m_LoggedIn = false; }