Skip to content

fix(rtd): strip _ref from EIDs before merging into prebid#289

Merged
mosherBT merged 1 commit into
Optable:masterfrom
MO-Thibault:mo/rtd-strip-ref
May 21, 2026
Merged

fix(rtd): strip _ref from EIDs before merging into prebid#289
mosherBT merged 1 commit into
Optable:masterfrom
MO-Thibault:mo/rtd-strip-ref

Conversation

@MO-Thibault
Copy link
Copy Markdown
Contributor

Summary

  • Strip the internal _ref property from EIDs before pushing them into prebid's ortb2Fragments
  • _ref contains UID2 refresh metadata (refresh tokens, expiry timestamps) used by the SDK wrapper's cache layer — it should never leak into the bid stream

Test plan

  • Verify _ref no longer appears in reqBidsConfigObj.ortb2Fragments.global.user.ext.eids after RTD merge
  • Verify UID2 refresh still works (reads _ref from localStorage cache, not from prebid fragments)

🤖 Generated with Claude Code

The _ref property (UID2 refresh metadata) is internal to the SDK
wrapper's cache and should never leak into prebid's ortb2Fragments.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
mosherBT
mosherBT previously approved these changes May 21, 2026
@mosherBT mosherBT self-requested a review May 21, 2026 15:45
@mosherBT mosherBT dismissed their stale review May 21, 2026 15:45

Revoking to bring up a comment

Comment thread lib/core/prebid/rtd.ts
eidsPerRoute[route] = eidsPerRoute[route] ?? { user: { ext: { eids: [] } } };
eidsPerRoute[route].user!.ext!.eids!.push(eid);
const { _ref, ...clean } = eid as any;
eidsPerRoute[route].user!.ext!.eids!.push(clean);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we not set eid now to clean to avoid confusion later in the code? And keep ref seperate to be referenced if we need it later.

@mosherBT mosherBT merged commit 84cd564 into Optable:master May 21, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants