Skip to content

Commit

Permalink
Merge pull request #91 from IABTechLab/syw-UID2-3221-remove-cstg-opto…
Browse files Browse the repository at this point in the history
…ut-check-flag

UID2-3221 Removed redundant optout_check flag in CSTG calls altogether
  • Loading branch information
sunnywu authored Aug 13, 2024
2 parents 27a8a05 + c28a278 commit ece5ba3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/apiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,8 @@ export class ApiClient {
data: { emailHash: string } | { phoneHash: string },
opts: ClientSideIdentityOptions
): Promise<CstgResult> {
const optoutPayload = this._productName == 'EUID' ? { optout_check: 1 } : {};
const request =
'emailHash' in data
? { email_hash: data.emailHash, ...optoutPayload }
: { phone_hash: data.phoneHash, ...optoutPayload };
'emailHash' in data ? { email_hash: data.emailHash } : { phone_hash: data.phoneHash };

const box = await CstgBox.build(stripPublicKeyPrefix(opts.serverPublicKey));

Expand Down

0 comments on commit ece5ba3

Please sign in to comment.