When returning an error message in the getUserInfo function it seems to be ignored. As soon as I return a response where successful: false it will display the default “failed to register api key” message.
See snippet below that i tried out in the getUserInfo function.
I included the platformUserInfo block to see if that affects the behavior but with or without it the result is the same.
Additionally: I see the findContact function also seems to ignore errors as they are not displayed in the RC UI.
Any feedback would be greatly appreciated.
return {
successful: false,
platformUserInfo: {
id,
name,
timezoneName,
timezoneOffset,
platformAdditionalInfo: {}
},
returnMessage: {
messageType: 'warning',
message: 'Need license.',
ttl: 3000
}
};