From 4390f137b8a1b4a5306059634f6582730eb3083f Mon Sep 17 00:00:00 2001 From: kunaisn Date: Wed, 4 Nov 2026 17:12:14 +0900 Subject: [PATCH 1/2] imuIdSystem: update API endpoint to ups.im-apps.net Co-Authored-By: Claude Opus 5.5 --- modules/imuIdSystem.js | 2 +- test/spec/modules/imuIdSystem_spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/imuIdSystem.js b/modules/imuIdSystem.js index 6a614344b3c..35ad197ea32 100644 --- a/modules/imuIdSystem.js +++ b/modules/imuIdSystem.js @@ -24,7 +24,7 @@ export const storage = getStorageManager({ moduleType: MODULE_TYPE_UID, moduleNa export const storageKey = '__im_uid'; export const storagePpKey = '__im_ppid'; export const cookieKey = '_im_vid'; -export const apiDomain = 'sync6.im-apps.net'; +export const apiDomain = 'ups.im-apps.net'; const storageMaxAge = 1800000; // 30 minites (30 * 60 * 1000) const cookiesMaxAge = 97200000000; // 37 months ((365 * 3 + 30) * 24 * 60 * 60 * 1000) diff --git a/test/spec/modules/imuIdSystem_spec.js b/test/spec/modules/imuIdSystem_spec.js index 6427b7fa8b7..0f7b4064743 100644 --- a/test/spec/modules/imuIdSystem_spec.js +++ b/test/spec/modules/imuIdSystem_spec.js @@ -87,7 +87,7 @@ describe('imuId module', function () { it('should return default url when cid only', function () { const url = getApiUrl(5126); - expect(url).to.be.match(/^https:\/\/sync6.im-apps.net\/5126\/pid\?page=.+&ref=/); + expect(url).to.be.match(/^https:\/\/ups.im-apps.net\/5126\/pid\?page=.+&ref=/); expect(url.endsWith(ref())).to.equal(true); }); From 3edf603a5492500dc2d153f2bcae351ac334c953 Mon Sep 17 00:00:00 2001 From: kunaisn Date: Wed, 11 Nov 2026 18:25:59 +0900 Subject: [PATCH 2/2] imuIdSystem, imRtdProvider: set _im_vid cookie lifetime to 400 days Both modules write the same _im_vid cookie with a 37-month expiry. Chrome caps cookie lifetimes at 400 days, so use that value in both. Co-Authored-By: Claude Fable 5.2 --- modules/imRtdProvider.js | 2 +- modules/imuIdSystem.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/imRtdProvider.js b/modules/imRtdProvider.js index c49dc90c40e..a3dd4bcd4cc 100644 --- a/modules/imRtdProvider.js +++ b/modules/imRtdProvider.js @@ -23,7 +23,7 @@ export const imRtdLocalName = '__im_sids'; const submoduleName = 'im'; const segmentsMaxAge = 3600000; // 1 hour (30 * 60 * 1000) const uidMaxAge = 1800000; // 30 minites (30 * 60 * 1000) -const vidMaxAge = 97200000000; // 37 months ((365 * 3 + 30) * 24 * 60 * 60 * 1000) +const vidMaxAge = 34560000000; // 400 days (400 * 24 * 60 * 60 * 1000) export const storage = getStorageManager({ moduleType: MODULE_TYPE_RTD, moduleName: submoduleName }); diff --git a/modules/imuIdSystem.js b/modules/imuIdSystem.js index 35ad197ea32..0831c6f6dfa 100644 --- a/modules/imuIdSystem.js +++ b/modules/imuIdSystem.js @@ -26,7 +26,7 @@ export const storagePpKey = '__im_ppid'; export const cookieKey = '_im_vid'; export const apiDomain = 'ups.im-apps.net'; const storageMaxAge = 1800000; // 30 minites (30 * 60 * 1000) -const cookiesMaxAge = 97200000000; // 37 months ((365 * 3 + 30) * 24 * 60 * 60 * 1000) +const cookiesMaxAge = 34560000000; // 400 days (400 * 24 * 60 * 60 * 1000) function setImDataInCookie(value) { storage.setCookie(