HatangUser

data class HatangUser(val userId: String? = null, val email: String? = null, val name: String? = null, val phone: String? = null, val hash: String? = null, val data: Map<String, Any?>? = null)

The identity a host app attaches to the visitor with identify.

hash is the HMAC-SHA256 (hex) of userId (or the email when there is no user id) computed on the host's server with the site's identity secret; it proves the identity so the visitor can be merged with earlier sessions.

Constructors

Link copied to clipboard
constructor(userId: String? = null, email: String? = null, name: String? = null, phone: String? = null, hash: String? = null, data: Map<String, Any?>? = null)

Properties

Link copied to clipboard
val data: Map<String, Any?>? = null

Custom attributes shown to agents (strings, numbers, booleans, lists and maps of them).

Link copied to clipboard
val email: String? = null

Email.

Link copied to clipboard
val hash: String? = null

Identity HMAC from the host's server.

Link copied to clipboard

Nothing to send.

Link copied to clipboard
val name: String? = null

Display name.

Link copied to clipboard
val phone: String? = null

Phone.

Link copied to clipboard
val userId: String? = null

The host app's user id.