Initialization is done using the TikiClient.initialize method after the client is configured, and it takes the userId as a parameter, which is a unique identifier of the user in your system.

🚧

Avoid using PII for user IDs

If your User ID is identifiable, like an email or phone number, we recommend hashing the string before initialization.

The initialize method of the Client Library automatically handles authorization with mytiki.com's APIs using the providerId and publicKey set during Configuration.

TikiClient.initialize("user1234_unique_id")
TikiClient.initialize("user1234_unique_id")
TikiClient.initialize("user1234_unique_id")