#Photon Fusion 2 webhooks in cloud script not working

7 messages · Page 1 of 1 (latest)

chilly raft
#

Hello. For my game I need to use both fusion 2 and oculus authentication at the same time. Can I even use both at the same time??

When I tried to add photon authentication (and added the webhook that lets me track new rooms being created via cloud script). There was a play stream event that said "Player photon session authenticated". But the room creation events didn't work? I've been trying to fix this issue for months now and just ignored it for a while until now. I really need this to work and it's giving me such a big headache.

#
PlayFabClientAPI.GetPhotonAuthenticationToken(new GetPhotonAuthenticationTokenRequest() {
                    PhotonApplicationId = AppID
                }, 
                result => {
                    AuthenticationData = new();
                    AuthenticationData.AuthType = CustomAuthenticationType.Custom;
                    AuthenticationData.AddAuthParameter("username", registrationResult.PlayFabId);
                    AuthenticationData.AddAuthParameter("token", result.PhotonCustomAuthenticationToken);

                    PhotonToken = result.PhotonCustomAuthenticationToken;
                }, 
                error => {
                    Debug.LogError($"Failed to authenticate: {error.ErrorMessage}");
                });

This is my code for authenticating if it's needed. And yes it's called right after an account is logged into or created.

chilly raft
#

oh nevermind I think I just missed a step in the setup process...

#

I wanna punch something

#

nevermind even after adding all of this it still doesn't work

#

nevermind I just added it to the wrong place

#

nope it still doesn't work ;-;