diff --git a/package.json b/package.json index 294d9f9..af2879f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@authsignal/browser", "type": "module", - "version": "0.0.13", + "version": "0.0.14", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "types": "dist/index.d.ts", diff --git a/src/authsignal.ts b/src/authsignal.ts index 54dba2a..cda8027 100644 --- a/src/authsignal.ts +++ b/src/authsignal.ts @@ -19,7 +19,9 @@ export class Authsignal { const idCookie = getCookie(this.anonymousIdCookieName); - if (!idCookie) { + if (idCookie) { + this.anonymousId = idCookie; + } else { this.anonymousId = uuidv4(); setCookie({