Skip to main content

Identify

Associate a user ID after authentication:
Encore.identify(userId = "user_123")
Optionally pass attributes at the same time:
import com.encorekit.kmp.models.UserAttributes

Encore.identify(
    userId = "user_123",
    attributes = UserAttributes(
        email = "user@example.com",
        firstName = "Ada",
        subscriptionTier = "premium",
    ),
)

Update Attributes

Update attributes for the current user at any time:
Encore.setUserAttributes(
    UserAttributes(
        city = "Austin",
        countryCode = "US",
        custom = mapOf("source" to "organic"),
    )
)
Attributes are merged — setting a single field doesn’t clear others.

Reset

Clear user data on logout:
Encore.reset()

Next Steps