Consent Accepted check

The isConsentAccepted() method is calling the Account Data service to check if the consent has been accepted.

Utility Reference

window.e.utils.v2.config.isConsentAccepted({ consentId })

window.e.utils.v2.isConsentAccepted({ consentId: 'consentToCheck' }).then(result => {
  if (!result) {
    return;
  }
  return renderFunctionalityBehindConsent();
});

Parameter

Name Type Description
consentId Id of the consent

Return value

Type Description
A promise that resolves to the result of the consent check