Introduce usage of potoken for GVS for visitor data users

This commit is contained in:
Brahim Hadriche committed 2026-06-24 17:35:52 -04:00
1 parent 5e34ce8067
commit 7e21e46ec0
4 files changed
+47 -4

No files matched your search

@@ -60,6 +60,12 @@ function ExecuteJob() as void
"accessToken": accessToken
"onBehalfOfUser": onBehalfOfUser
})
if IsAssociativeArray(metadata)
contentNode.addFields({
potAttached: ValidBool(metadata.potAttached)
loggedIn: not StringUtils.IsNullOrEmpty(accessToken)
})
end if
else
metadata = service.GetVideoMetadata(contentNode.videoId, { cancellation: m.top.cancellation })
end if