Date of slack thread: 5/28/24
Anonymous: We’re having issues with guest user signing in will get a different evaluation, the guest user object containing an custom id that will also be appended to signed in user object but i dont think they are linked together, any method that we can link those guest user and signed in user back together so the value will be the same? This issue only happens during domain changing, test.com to a.test.com, test.com will evaluate true and a.test.com will evaluate false.
Cooper Reid (Statsig): <@U061XPDJCHZ> - to guarantee the same evaluation, you’ll need to make sure the same identifier is passed to the SDK. If you’re using the Client SDK (js-sdk, reactsdk), we use localStorage to persist the “stableID”, which does not cross-subdomains — therefore the user will get a different stableID on different domains. You should consider generating your own device-level id and storing that in a Cookie scoped to any subdomain under that domain, and passing that to the user object as the identity.
Anonymous: Thanks