FlagFix
SDKs

Identify users

Set the targeting key before a rollout matters.

Cette page n’a pas encore de traduction française. Le texte anglais fait foi.

Last updated on

client.identify("user_123", { plan: "pro", country: "SN" });

The user id is the targeting key for the next evaluation. Traits go in the context. Identity changes drop the previous flag snapshot. On the server, use withIdentity per request. Call reset() on logout so the next person on that browser does not inherit flags. getIdentity() returns the current id and traits.

Cette page vous a-t-elle été utile ?