By default, a user's Custom fields are not included in the loginSuccess callback described here.
If you'd like to pass this information, you would need to adjust the loginSuccess callback's code as follows:
tp.push(["addHandler", "loginSuccess", function(data){
tp.pianoId.loadExtendedUser({
extendedUserLoaded: function (data) {
for (var i in data.custom_field_values) {
var fieldName = data.custom_field_values[i].field_name;
var fieldValue = data.custom_field_values[i].value;
console.log("Field " + fieldName + " has value " + fieldValue);
}
}
});
}]);
The loadExtendedUser function loads the user's data including any custom fields. More information about this and other Identity Management functions is available here.