Skip to content

Commit 1f33a9d

Browse files
ssundahlTTDDecayConstant
authored andcommitted
UID2: Remove obsolete optout-check code for EUID (prebid#11709)
* remove obsolete optout-check code for EUID * fix jsdoc warnings
1 parent 328de7c commit 1f33a9d

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

modules/euidIdSystem.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ import {MODULE_TYPE_UID} from '../src/activities/modules.js';
1414
// eslint-disable-next-line prebid/validate-imports
1515
import { Uid2GetId, Uid2CodeVersion, extractIdentityFromParams } from './uid2IdSystem_shared.js';
1616

17+
/**
18+
* @typedef {import('../modules/userId/index.js').Submodule} Submodule
19+
* @typedef {import('../modules/userId/index.js').SubmoduleConfig} SubmoduleConfig
20+
* @typedef {import('../modules/userId/index.js').ConsentData} ConsentData
21+
* @typedef {import('../modules/userId/index.js').IdResponse} IdResponse
22+
*/
23+
1724
const MODULE_NAME = 'euid';
1825
const MODULE_REVISION = Uid2CodeVersion;
1926
const PREBID_VERSION = '$prebid.version$';
@@ -75,9 +82,9 @@ export const euidIdSubmodule = {
7582
/**
7683
* performs action to obtain id and return a value.
7784
* @function
78-
* @param {SubmoduleConfig} [configparams]
85+
* @param {SubmoduleConfig} [config]
7986
* @param {ConsentData|undefined} consentData
80-
* @returns {euidId}
87+
* @returns {IdResponse}
8188
*/
8289
getId(config, consentData) {
8390
if (consentData?.gdprApplies !== true) {
@@ -103,7 +110,6 @@ export const euidIdSubmodule = {
103110
mappedConfig.cstg = {
104111
serverPublicKey: config?.params?.serverPublicKey,
105112
subscriptionId: config?.params?.subscriptionId,
106-
optoutCheck: 1,
107113
...extractIdentityFromParams(config?.params ?? {})
108114
}
109115
}

modules/uid2IdSystem_shared.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,6 @@ if (FEATURES.UID2_CSTG) {
393393
this._baseUrl = opts.baseUrl;
394394
this._serverPublicKey = opts.cstg.serverPublicKey;
395395
this._subscriptionId = opts.cstg.subscriptionId;
396-
this._optoutCheck = opts.cstg.optoutCheck;
397396
this._logInfo = logInfo;
398397
this._logWarn = logWarn;
399398
}
@@ -451,8 +450,7 @@ if (FEATURES.UID2_CSTG) {
451450
}
452451

453452
async generateToken(cstgIdentity) {
454-
const requestIdentity = await this.generateCstgRequest(cstgIdentity);
455-
const request = { optout_check: this._optoutCheck, ...requestIdentity };
453+
const request = await this.generateCstgRequest(cstgIdentity);
456454
this._logInfo('Building CSTG request for', request);
457455
const box = await UID2CstgBox.build(
458456
this.stripPublicKeyPrefix(this._serverPublicKey)

0 commit comments

Comments
 (0)