token

The stable anonymous user token.

Lazily generates a unique UUID string on the first access, stores it to disk, and returns the persisted value on all subsequent accesses.

Example:

val store = UserTokenStore.create(context)
val userToken = store.token // e.g. "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d"