Skip to content

Commit

Permalink
changed the euid pattern to match uid2
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysmithTTD committed Aug 23, 2024
1 parent 7216cc0 commit b75c3c2
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/euidSdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@ import { loadConfig } from './configManager';

export * from './exports';

const productDetails: ProductDetails = {
name: 'EUID',
defaultBaseUrl: 'https://prod.euid.eu',
localStorageKey: 'EUID-sdk-identity',
cookieName: '__euid',
};

export class EUID extends SdkBase {
private static cookieName = '__euid';
private static cookieName = productDetails.cookieName;
// Deprecated. Integrators should never access the cookie directly!
static get COOKIE_NAME() {
console.warn(
Expand All @@ -16,12 +23,7 @@ export class EUID extends SdkBase {
return EUID.cookieName;
}
static get EuidDetails(): ProductDetails {
return {
name: 'EUID',
defaultBaseUrl: 'https://prod.euid.eu',
localStorageKey: 'EUID-sdk-identity',
cookieName: EUID.cookieName,
};
return productDetails;
}

static setupGoogleTag() {
Expand Down Expand Up @@ -71,7 +73,7 @@ export function __euidInternalHandleScriptLoad() {
window.__euid = new EUID(callbacks, callbackContainer);
if (callbackContainer.callback) callbackContainer.callback();
if (window.__euid instanceof EUID) {
const config = loadConfig(EUID.EuidDetails);
const config = loadConfig(productDetails);
if (config) {
window.__euid.init(config);
}
Expand Down

0 comments on commit b75c3c2

Please sign in to comment.