Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • Bugs /
avatar image
Question by Jan Oliver Eylander · Mar 23, 2020 at 02:39 PM · apisunity3d

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; }
Comment

People who like this

0 Show 1
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Sarah Zhang ♦ · Mar 25, 2020 at 02:01 AM 0
Share

Could you please provide the detailed error messages?

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    unity3d 2017 UriFormatException: Invalid URI: The hostname could not be parsed. (.playfabapi.com),UriFormatException: Invalid URI: The hostname could not be parsed. (.playfabapi.com) 2 Answers

    Invalid Input parameter for valid e-mail address 2 Answers

    HttpWebRequest Proxy set to null? 1 Answer

    "Authentication - Login With Google Account" docs and Unity SDK are missing the "AccessToken" variable 3 Answers

    Player account password reset email not reflecting 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges