Understand the key concepts of FlagSync SDKs for feature management.
key
in the FsUserContext
object to ensure accurate billing and consistent flag behavior:
key
values, which are limited by your pricing tier. Non-unique or non-persistent keys (e.g., hardcoding 'anonymous'
or generating a new ID per request) can undercount or overcount MAUs, affecting billing accuracy.key
values like 'anonymous'
or generating a new ID on every request (e.g., calling nanoid()
without persistence). Instead, use a persistent identifier, such as a cookie for unauthenticated users (e.g., visitor-id
), to ensure accurate MAU tracking and consistent flag evaluations.