question

alex-7 avatar image
alex-7 asked

Issue logging in with RegisterPlayFabUser

When registering a new user using RegisterPlayFabUser in the Javascript API and specifying the "LoginTitlePlayerAccountEntity" flag on the request, the X-EntityToken isn't automatically set. We were able to work around this by setting it manually, but we were under the impression that it would be set automatically as per the documentation.

apis
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Neils Shi avatar image
Neils Shi answered

The API RegisterPlayFabUser does not set the X-EntityToken automatically. For more info, please refer to JavaScript SDK code. Other login APIs like LoginWithCustomID will set the Entity Token automatically, so, you can refer to their code and modify the code of RegisterPlayFabUser API.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.