NodeSDK
NodeSDK copied to clipboard
[Question] How to set entityToken and SessionTicket in PlayFab SDK?
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!
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.