I implemented Playfab + Photon Auth system as Playfab tutorial described. But these couple of days I have been getting "OperationResponse 230: ReturnCode: 32755 (Invalid token). Parameters: {} Server: NameServer Address: ns.exitgames.com:5058" error.
Here is my code snippet
private void PhotonAuth() { PlayFabClientAPI.GetPhotonAuthenticationToken(new GetPhotonAuthenticationTokenRequest() { PhotonApplicationId = PhotonNetwork.PhotonServerSettings.AppSettings.AppIdRealtime }, AuthenticateWithPhoton, OnPlayfabError); ; } private void AuthenticateWithPhoton(GetPhotonAuthenticationTokenResult result) { Debug.Log("Photon token for " + playfabID + " acquired: " + result.PhotonCustomAuthenticationToken); AuthenticationValues customAuth = new AuthenticationValues { AuthType = CustomAuthenticationType.Custom }; customAuth.AddAuthParameter("username", playfabID); // expected by PlayFab custom auth service customAuth.AddAuthParameter ("token", result.PhotonCustomAuthenticationToken); PhotonNetwork.AuthValues = customAuth; PhotonNetwork.ConnectUsingSettings(); }
Is there anything I am missing?
Thanks in advance