Giter Club home page Giter Club logo

Comments (6)

secondimpactrob avatar secondimpactrob commented on June 18, 2024

Your log only seems to show Auth calls, nothing to do with Connect?

If the issue you have is like one we saw, we found that brand new epic accounts would have no Product User ID yet, and Connect login calls would returns invalid user. We needed to react to that situation and call Connect CreateUser to make sure that they got their Product User ID that first time, and from there it would work. (The docs are hazy on this and mostly refer to it in terms of non-epic flows, but it appears to be necessary)

from eos_plugin_for_unity.

BestStream avatar BestStream commented on June 18, 2024

@secondimpactrob Only this log is there. I believe his last line contains useful information:
Error response received from backend. ServiceName=[EOSAuth], OperationName=[TokenGrant], Url=[<Redacted>], HttpStatus=[404], ErrorCode=[errors.com.epicgames.eos.auth.user_not_found], NumericErrorCode=[110016], ErrorMessage=[EOS User Identity not found

Immediately after it, StartConnectLoginWithEpicAccount returns InvalidUser.

You right, the error occurs on new accounts. I created a new account on purpose to check if in-game purchases work in Live environment.

So what advice can you give? What can be done to fix this?

from eos_plugin_for_unity.

secondimpactrob avatar secondimpactrob commented on June 18, 2024

I believe what you need to do is:

Following successful Auth login, do your Connect Login.

In the callback, check the result:
-> if SUCCESS, all good
-> if INVALID_USER, call EOSManager.Instance.CreateConnectUserWithContinuanceToken passing the continuance token you get in the callback.

This approach can be seen in PEW's sample code (inside UILoginMenu.cs), however in their code they then follow up with another Connect login, which I didn't find to be needed.

from eos_plugin_for_unity.

BestStream avatar BestStream commented on June 18, 2024

@secondimpactrob Thank you for advice! I tried. But even though the login is successful, LoginCallbackInfo.ContinuanceToken empty and CreateConnectUserWithContinuanceToken returns an error "Invalid parameter EOS_Connect_CreateUserOptions.ContinuanceToken reason: property must not be null"

from eos_plugin_for_unity.

secondimpactrob avatar secondimpactrob commented on June 18, 2024

@BestStream the continuance token should come from the failed Connect login callback (where it returns invalid user) not the successful Auth login.

from eos_plugin_for_unity.

BestStream avatar BestStream commented on June 18, 2024

@secondimpactrob Thank you very much! It works now. And this really is in the examples (it's strange that I missed this when I transferred the code from there)

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.