If anyone wants to just login by a unique id instead of an email login, I had to do this for webgl to work.
string DeviceID()
{
string deviceId;
if (!PlayerPrefs.HasKey("MuscleBabyUniqueIdentifier"))
PlayerPrefs.SetString("MuscleBabyUniqueIdentifier", Guid.NewGuid().ToString());
deviceId = PlayerPrefs.GetString("MuscleBabyUniqueIdentifier");
return deviceId;
}
This way, a new guid string is made and saved in playerprefs on local pc. and retrieved on next game play.
however this works on PC fine.
deviceId = SystemInfo.deviceUniqueIdentifier;
this is when you are using PlayFabClientAPI.LoginWithCustomID