Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

feat(ids): check LocalStorage when cookies are not available #108

Merged
merged 1 commit into from
Mar 13, 2019

Conversation

f2prateek
Copy link
Contributor

This updates entity.js and user.js to dual write ids to localStorage and the cookies. This applies
to userId, groupId and anonymousIds. Reads will check the cookie first, and fallback to the
localStorage when a cookie is not available. When cookies are not available during reads, and
localStorage is, we write the value to the cookie as well.

This updates entity.js and user.js to dual write ids to localStorage and the cookies. This applies
to userId, groupId and anonymousIds. Reads will check the cookie first, and fallback to the
localStorage when a cookie is not available. When cookies are not available during reads, and
localStorage is, we write the value to the cookie as well.
@f2prateek f2prateek requested review from nhi-nguyen and fathyb March 12, 2019 23:47
@nhi-nguyen
Copy link

@f2prateek this PR is to merge our (already reviewed) localStorage changes to master, yes?

@f2prateek
Copy link
Contributor Author

Yes.

@f2prateek f2prateek merged commit 0d6fd8c into master Mar 13, 2019
@pooyaj pooyaj deleted the localstorage-fallback branch July 20, 2020 19:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants