ID and expiration timestamp not save to localStorage
Here's my digiTrust config:
const digiTrust = {
name: 'digitrust',
params: {
init: {
member: MEMBER_ID,
site: SITE_ID
},
callback(digiTrustResult) { }
},
storage: {
type: 'html5',
name: MY_DIGITRUST_ID,
expires: MY_TIMESTAMP
}
};
Should see these two items in localStorage:
1. MY_DIGITRUST_ID
2. MY_DIGITRUST_ID_exp
Items which mentioned in "Expected results" not being set to localStorage.
Prebid.js - NPM, >= 3.5.0
OS - macOS
Browser - Chrome / Safari
@bretg @jlukas79 @idettman that's indeed an issue in module caused by https://github.com/prebid/Prebid.js/pull/4745. UserId module callback cb(_savedId); still needs to happen so that data is stored. Issue gets reproduced for any kind of storage (cookie or local) as data is not stored.
Any progress?
There is another fix that was just integrated and I will look to see if this addresses your issue. I also noticed behavior in the userId system that could cause the ID not to be set when the sync delay is exceeded, even when the ID returns. Will update this ticket when I have more information.
I just did a verification. With PR #5013 merged this issue is fixed. Note that pages using DigiTrust identity values must be run over HTTPS for best browser behavior.
Thanks @goosemanjack . @ckybonist - please confirm and re-open if needed.
I've upgrade prebid to 3.14.0 and test it again, the result is still not saved to localStorage.
@bretg @goosemanjack
Please go ahead and re-open this issue @ckybonist
There appears to be a different underlying cause. I have reproduced this in some scenarios but am still working on a solid repro to determine if this is a Safari issue or a general issue.
Also, if you have a public test page you can forward please add link. Otherwise I'll use my own test pages.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
not sure if it is the same issue, but #5141 provides a public test page at https://www.warhistoryonline.com/videos/digitrust.fail.v0.html?pbjs_debug=true
Any status here?
Issue #5141 was not related and a fix has been submitted for that issue. I have gotten some time to investigate this further and will update when I have something.