Skip to content

Argument passed to 'onConsentChanged' callback function #39

@sl-pierrevautherin

Description

@sl-pierrevautherin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions