Answers about identity
Questions and answers from the Croct community about identity.
Multi-tenant Next app, which tokenScope keeps one tenant's identity out of another?
We build a multi-tenant SaaS where a single browser can switch between tenant workspaces in the same session. My concern is identity bleed: I do not want a…
On logout should I call anonymize, and does it wipe the profile I built up?
Our Next app calls identify on login and I am now adding the logout side of the behaviour. Two things I want to get right before I ship it. First, is…
Sharing the same visitor identity between our marketing site and app subdomain
Our marketing site runs on the apex domain and the product runs on an app subdomain, both Next apps. Right now a visitor who crosses from marketing to the app…
Do logged-in shoppers stay in the same variant across devices on Hydrogen?
lots of our shoppers browse on mobile and then buy later on desktop. We run an experiment on the product page and I do not want someone to see variant A on…
"user is anonymous" vs "user is returning", which one for first-time visitors?
Building a welcome experience for genuine first-time visitors and a separate one for people coming back. I keep tripping over whether anonymous and returning…
Where do I call identify on login in the App Router, server or client?
I want logged-in users recognized so their profile carries across visits. What I cannot figure out is where identify belongs in the App Router, a server…
Different hero for active subscribers vs churned ones on a subscription storefront
Beverage DTC on Hydrogen with a subscription program. We want three states on the home hero: Active subscribers: refill reminders and tier-upgrade…
When I call anonymize on logout, what actually happens to the profile?
I call croct.identify on login and croct.anonymize on the logout. I want to understand exactly what anonymize does under the hood. Specifically: does it…
Are logged-in Shopify customers identified automatically or do I call identify myself?
Wiring Croct into a Hydrogen store that uses Shopify customer accounts. Simple question first: if a customer is logged in, does their identity flow through to…
When do I call identify and anonymize in a Vue app with Pinia auth?
I keep login state in a Pinia store with the usual login and logout actions, and I want to hook identity in the right place so a user carries their profile…
Users log into two accounts in two tabs and their sessions bleed together
B2B app, support agents routinely open two customer accounts side by side in separate tabs. Our support team can reliably reproduce cross-account…
Do users keep the same variant when they switch from phone to laptop?
Testing an experiment before rollout. Expected behavior: a logged-in customer sees the same variant everywhere. Actual behavior: my test account saw variant B…