question

Tommy Li avatar image
Tommy Li asked

AddUsernamePassword requires both email and username while Other APIs do not?

In the API doc, the AddUsernamePassword marks both username and email as required. This is not something I consider good user experience as both fields are required to be unique, but I can work around that by generating a random username and let the user fill in the email.

But, I noticed that RegisterPlayFabUser allowed me to either specify username OR email, which is inconsistent with AddUsernamePassword.

And then there is LoginWithEmailAddress which user can sign in with email, but no Login APIs with username seem to exist. Eh??

Links to the mentioned API:

https://docs.microsoft.com/en-us/rest/api/playfab/client/account-management/addusernamepassword?view=playfab-rest

https://docs.microsoft.com/en-us/rest/api/playfab/client/authentication/registerplayfabuser?view=playfab-rest

https://docs.microsoft.com/en-us/rest/api/playfab/client/authentication/loginwithemailaddress?view=playfab-rest

apisAccount ManagementAuthentication
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

·
Seth Du avatar image
Seth Du answered

In terms of AddUsernamePassword request, please feel free to send a thread on Feature requests forum and votes from developers in the community can help with the priority.

Moreover, to use Username to login, please see the usage of LoginWithPlayFab.

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.