From 248563724e6bdfd2b6fb635161d3749e8f29fae7 Mon Sep 17 00:00:00 2001 From: Blaine Gunn Date: Thu, 3 Oct 2024 13:52:46 -0600 Subject: [PATCH] MWPW-159560 --- acrobat/scripts/alloy/verb-widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acrobat/scripts/alloy/verb-widget.js b/acrobat/scripts/alloy/verb-widget.js index 46e24bb8..f04636c9 100644 --- a/acrobat/scripts/alloy/verb-widget.js +++ b/acrobat/scripts/alloy/verb-widget.js @@ -30,7 +30,7 @@ export default function init(eventName, verb, metaData) { if (!arrayToken) return; const tokenPayload = JSON.parse(atob(arrayToken[1])); // eslint-disable-next-line consistent-return - return tokenPayload.sub; + return tokenPayload.sub || tokenPayload.user_id; } console.log(`📡 Event Name - acrobat:verb-${verb}:${eventName} - metaData: ${metaData?.type} / ${metaData?.size} `); const event = {