From 20b33576c93d0a546e9068cf92f09c6d3f1330d8 Mon Sep 17 00:00:00 2001 From: MO Thibault <103271673+MO-Thibault@users.noreply.github.com> Date: Wed, 20 May 2026 14:37:55 -0400 Subject: [PATCH] fix(rtd): strip _ref from EIDs before merging into prebid 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) --- lib/core/prebid/rtd.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/prebid/rtd.ts b/lib/core/prebid/rtd.ts index cd9f350..dbb88da 100644 --- a/lib/core/prebid/rtd.ts +++ b/lib/core/prebid/rtd.ts @@ -321,7 +321,8 @@ function handleRtd( routes.forEach((route) => { 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); config.log("info", `EID with source ${eid.source} routed to ${route}`); }); processedEids += 1;