question

Jan Oliver Eylander avatar image
Jan Oliver Eylander asked

StackOverflow On PlayFabClientAPI.ForgetAllCredentials();

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; }
apisunity3d
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sarah Zhang avatar image Sarah Zhang commented ·

Could you please provide the detailed error messages?

0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.