monks-and-mages
monks-and-mages copied to clipboard
Allow players to change nicknames
trafficstars
out of the box, auth0 provides the social sign-in email as the nickname. There should be a clear button that indicates that you can change your name that makes a socket.io clientToServer call, which in turn makes a PATCH API request for the given user
Likely need this:
https://auth0.com/docs/api/management/v2#!/Users/patch_users_by_id
Would look like this in the Node client for Auth0:
auth0.updateUser({id: ...}, {username})