Skip to content

Commit

Permalink
legacy cookie addition
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleysmithTTD committed Aug 28, 2024
1 parent 33d978c commit 1fad72d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sdkBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,11 @@ export abstract class SdkBase {
if (payload) {
const result = JSON.parse(payload) as unknown;
if (isValidIdentity(result) || isOptoutIdentity(result)) return result;
if (isLegacyCookie(result)) {
return enrichIdentity(result, Date.now());
//this.setCookie(newCookie);
//return newCookie;
}
}
return null;
}
Expand Down

0 comments on commit 1fad72d

Please sign in to comment.