Hi,
Could you provide documentation on the consentToken passed to 'onConsentChanged' callback function ?
Does it provide any info on what has changed in the user consent choices ?
Is it a string as stated in index.d.ts ?
// https://github.com/didomi/react/blob/master/src/index.js#L41
if (onConsentChanged) {
window.didomiEventListeners.push({
event: 'consent.changed',
listener: (e) => {
onConsentChanged(e.consentToken);
},
});
}
Wouldn't it be useful to provide the 'action' (click | navigate | external) value as well ?
Or the full Event ?
Thanks