Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/imRtdProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });

Expand Down
4 changes: 2 additions & 2 deletions modules/imuIdSystem.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ 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)
const cookiesMaxAge = 34560000000; // 400 days (400 * 24 * 60 * 60 * 1000)

function setImDataInCookie(value) {
storage.setCookie(
Expand Down
2 changes: 1 addition & 1 deletion test/spec/modules/imuIdSystem_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down
Loading