Giter Club home page Giter Club logo

Comments (4)

paulhazen avatar paulhazen commented on June 25, 2024 1

Hey, I apologize for creating another issue

Nothing to apologize for @nitrocss.

Helps us make the plugin better and better - plus I usually learn something along the way 😄

I'll look into this and the other issue first thing at the start of next week.

from eos_plugin_for_unity.

Kenny5 avatar Kenny5 commented on June 25, 2024 1

We came across this issue too.
If you look at the managing user flow from the epic documentation (https://dev.epicgames.com/docs/game-services/eos-connect-interface#managing-users) you'll see that if the user does not exist, the login API returns a EOS_InvalidUser result along with a EOS_ContinuanceToken. The token provides details about the login attempt and is required during the next steps in the login flow.

So in the flow chart provided at the above link its the red circled state that is missing from this plug-in:

flow

We fixed this by adding a call to EOSManager.Instance.CreateConnectUserWithContinuanceToken in our ConnectLoginCallback.

For Example:

if (connectLoginCallbackInfo.ResultCode == Result.InvalidUser)
{
    //Invalid user so create one with the connect ContinuanceToken
    EOSManager.Instance.CreateConnectUserWithContinuanceToken(connectLoginCallbackInfo.ContinuanceToken, createUserCallbackInfo => { 
            Debug.Log($"CreateConnectUser.  [{createUserCallbackInfo.ResultCode}]");
        }
    });
}else{
    Debug.LogError($"Connect Login Failed.  [{connectLoginCallbackInfo.ResultCode}]");
}

The strange thing was some of our users were able to play and get a valid connect login without this logic so not sure what the difference is to cause it for only some, I've asked epic via support ticket and will update here if I hear back at all.

from eos_plugin_for_unity.

paulhazen avatar paulhazen commented on June 25, 2024

@Kenny5 Excellent to know! Thank you for this. I will add it to our tasks for the week to plug this gap. I appreciate you sharing your solution! :)

from eos_plugin_for_unity.

paulhazen avatar paulhazen commented on June 25, 2024

@nitrocss I'm going to close this issue and mark it as pending, which is how we track issues for which a work-around has been provided and a change has been introduced to the development branch, but has not yet made it into stable or filtered into our releases. Thanks again to @Kenny5 for providing such a clear overview of the problem and how to resolve it.

from eos_plugin_for_unity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.