PlayFab.PlayFabMatchmakerAPI.AuthUser C# (CSharp) Method

AuthUser() public static method

Validates a user with the PlayFab service
public static AuthUser ( AuthUserRequest request, Action resultCallback, Action errorCallback, object customData = null ) : void
request PlayFab.MatchmakerModels.AuthUserRequest
resultCallback Action
errorCallback Action
customData object
return void
        public static void AuthUser(AuthUserRequest request, Action<AuthUserResponse> resultCallback, Action<PlayFabError> errorCallback, object customData = null)
        {
            if (PlayFabSettings.DeveloperSecretKey == null) throw new Exception("Must have PlayFabSettings.DeveloperSecretKey set to call this method");

            PlayFabHttp.MakeApiCall("/Matchmaker/AuthUser", request, AuthType.DevSecretKey, resultCallback, errorCallback, customData);
        }