Quick question:
What is the ClientSessionToken supposed to do? We don't need to fill out the field, there seems to be no description anywhere on the official docs, nor on the forums from what I saw at first glance. I assume it's the session token you need to keep a player logged in at your site with their PlayFab account, but shouldn't that be returned by PlayFab? Or do I understand it wrong?
Thank you for the help! :)
Answer by Sarah Zhang · Jul 14, 2020 at 02:44 PM
>> We don't need to fill out the field, there seems to be no description anywhere on the official docs, nor on the forums from what I saw at first glance.
Yes, generally, title developers don’t need to fill out it manually, unless using the API testing tool -- Postman. Because this field is in the request header of client APIs, and most PlayFab Platform SDK will fill it in PlayFabSettings (a field in the SDK) programmatically. If you check the API reference of a client API, for example, AddUsernamePassword, you can find the “Session Ticket” field in the request header.
>> I assume it's the session token you need to keep a player logged in at your site with their PlayFab account.
Your assumption is almost right, “client session ticket”is the client's credential to access the Client API, it needs to be contained in the request header of every client API. And as the first answer said, it would be filled in programmatically by most SDK. And every client session ticket would expired after 24 hours.
>> But shouldn't that be returned by PlayFab?
“Client session ticket”would be returned in the response of every login API calls, you can navigate to this page -- Authentication APIs to retrieve the API references. For example, it could be returned by LoginWithCustomID.
Multiple accounts within the same title 2 Answers
I keep getting Uncaught errorLoggedIn on the Javascript SDK trying to GetPlayerProfile 3 Answers
How can I convert the timezone in PlayFab? 1 Answer
Converting PlayFab Info to Player Object 2 Answers
Updating linked Steam account usernames (display names) when they change them on Steam? 1 Answer