code: function _getDigiTrustObject(key) {
    function getDigiTrustId() {
      let digiTrustUser = window.DigiTrust && (config.getConfig('digiTrustId') || window.DigiTrust.getUser({member: key}));
      return (digiTrustUser && digiTrustUser.success && digiTrustUser.identity) || null;
    }
    let digiTrustId = getDigiTrustId();
    // Verify there is an ID and this user has not opted out
    if (!digiTrustId || (digiTrustId.privacy && digiTrustId.privacy.optout)) {
      return null;
    }
    return digiTrustId;
  }
docs: https://github.com/digi-trust/dt-cdn/wiki/Integration-Guide