I am trying to connect to photon with JavaScript.
Both PlayFabClientApi.js and Photon-Javascript_SDK.js are included in the html file.
I followed up Unity example, but can't find equivalent JavaScript api of below.
AuthenticationValues customAuth = new AuthenticationValues();
customAuth.AuthType = CustomAuthenticationType.Custom;
customAuth.AddAuthParameter("username", id); // expected by PlayFab custom auth service
customAuth.AddAuthParameter("token", ticket); // expected by PlayFab custom auth service
PlayFabClientSDK.LoginWithCustomID() and PlayFabClientSDK.GetPhotonAuthenticationToken() are successful but without the auth setting, there is error "Client: Error: 3101 NameServer authentication failed" when calling LoadBalancingClient.connectToRegionMaster().
Can you guide how to set authentication?