Creates a new UserTokenStore instance.
Optionalstorage: TokenStorageAdapter
Optional custom storage adapter conforming to TokenStorageAdapter.
Synchronously returns the currently cached user token. If not already initialized, generates and caches a new in-memory UUID.
When using an asynchronous storage adapter, prefer awaiting getToken to ensure any pre-existing token in storage is properly recovered before use.
StaticsharedReturns the shared singleton instance of UserTokenStore.
Asynchronously retrieves the user token, prioritizing recovery of existing tokens from storage.
A promise resolving to the user token string.
Checks whether a changelog release version or entry ID has already been marked as seen.
Changelog version label (e.g. '1.2.0') or entry ID.
Promise resolving to true if seen, false otherwise.
StaticconfigureReconfigures the shared singleton with a custom storage adapter.
Storage adapter instance.
The configured singleton UserTokenStore.
Manages device-level persistent anonymous user tokens for CupThread SDK interactions.
Remarks
Anonymous tokens allow users to submit feedback, upvote roadmap features, and participate in discussions without requiring an upfront sign-in. The token is generated as an RFC 4122 v4 UUID and can be stored across app restarts using custom storage adapters (e.g. AsyncStorage / SecureStore).
Example