If I wait until the session expires and call LoginWithCustomID a new user is created every time even though there is a user already using the same id. If CreateAccount is set to false "user not found" is returned.
Login code:
function DoExampleLoginWithCustomID() { PlayFab.settings.titleId = "TITLE_ID_REMOVED"; var loginRequest = { // Currently, you need to look up the correct format for this object in the API-docs: // https://api.playfab.com/documentation/Client/method/LoginWithCustomID TitleId: PlayFab.settings.titleId, CustomId: "GettingStartedGuide", CreateAccount: true }; PlayFabClient.LoginWithCustomID(loginRequest, LoginCallback); }
First Output:
Congratulations, you made your first successful API call!
Test Running!
Datetime: Mon Jul 23 2018 20:26:33 GMT-0700 (PDT)
Playfab ID: 1DB9348EE6AA4F66
Second output. Same code later time.
Congratulations, you made your first successful API call!
Test Running!
Datetime: Mon Jul 23 2018 21:50:21 GMT-0700 (PDT)
Playfab ID: 73F46317BFFA3AA2
If CreateAccount is set to false and the session is over "User not found" is returned even though the CustomID never changes.