I had originally started using LoginWithServerCustomId for players to login, but I realized that things with IP would be linked to my servers instead of the clients. I am implementing LoginWithCustomId for players and trying to Link with the ServerCustomId.
When I try to Link, it will create a new Player instead of linking the existing one. The new player will also be used when a player logs in with the same ServerCustomId excluding all the previous unlinked information.
Start State [ServerCustomId]
Login with Custom ID [ServerCustomId] [CustomId]
LinkServerCustomId <- Problem here [ServerCustomId] [CustomId linked with NEW ServerCustomId]
Now when a player logs in with the original ServerCustomId, it will be the new linked [CustomId linked with NEW ServerCustomId]
I'm hitting the APIs directly with axios
axios.post(playfabBaseURL + "/Server/LinkServerCustomId", {
PlayFabId: playFabId,
ServerCustomId: serverCustomId,
ForceLink: true,