Hello everyone!
I need to support the following use case:
* Player enters game
* Login with anonymous ID\Facebook Login
* After some time, I want to offer to the user the option of creating a "Full" account, one with email/password as well as their previous integration.
On the docs I see that you can start with an email/password account and then link other services, however seems like the reverse is not possible, starting with a facebook account link and then adding email/password at a later time.
Answer by Brendan · Aug 16, 2016 at 07:14 PM
You can use AddUsernamePassword to add username, email, and password to an account created without them (via Facebook or any of the ID-based login calls). Can you give that a try, and let us know if you encounter any issues?
I do exactly as above and use AddUsernamePassword. Works nicely. But as I don't want to confuse the players with an extra username (they already chose a title display name), and the username is required in AddUsernamePassword, I just pass in the Player Id again.
Is there a reason why AddEmailPassword, without a username required, isn't possible?
Well, the specific answer to your question is yes, there's no API that does what you describe (set the email and password, without a Username), since all three fields are required in the existing API call. What I would recommend is adding a post to our Feature Requests forum area, so that others can see your request and potentially "like" it (which helps with prioritization).
+1 My game have a usecase for this feature (We don't use usernames to login, only email).