Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to set entityToken and SessionTicket in PlayFab SDK? #128

Open
akatadev opened this issue May 8, 2023 · 1 comment
Open

Comments

@akatadev
Copy link

akatadev commented May 8, 2023

I 'm currently working with playfab-sdk , and I got the entityToken and SessionTicket after login but I cannot find method to set it on _internalSettings in playfabClient :
var _internalSettings = (exports._internalSettings = {
entityToken: null,
sessionTicket: null,
requestGetParams: {
sdk: "JavaScriptSDK-2.123.230403",
},
});

Thanks in advance!

@mrwadepro
Copy link

I don't know if I am missing something here... But the way I was setting it is
(PlayFab as any)._internalSettings.entityToken = token; BUT this should cause problems because if users call this multiple times at once, the entityToken is overwritten every time.

My feeling is that this just makes this whole SDK garbage. But. Hopefully I am wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants