FlagFix
SDKs

Identify users

Set the targeting key before a rollout matters.

لا توجد ترجمة عربية منشورة لهذه الصفحة بعد. النص الإنجليزي هو المرجع.

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.

هل كانت هذه الصفحة مفيدة؟