The Client Library includes a logout method to delete the current user's credentials.

Using this method is not mandatory. If you wish to switch to a different user, simply invoke the initialize method once more. This will reconfigure the client with the new user's credentials.


// First user logs in
TikiClient.initialize("first_user")

// Every call to TikiClient will use the first_user credentials

// Second user logs in
TikiClient.initialize("second_user")

// Every call to TikiClient will use the second_user credentials
// First user logs in
TikiClient.initialize("first_user")

// Every call to TikiClient will use the first_user credentials

// Second user logs in
TikiClient.initialize("second_user")

// Every call to TikiClient will use the second_user credentials
// First user logs in
TikiClient.initialize("first_user")

// Every call to TikiClient will use the first_user credentials

// Second user logs in
TikiClient.initialize("second_user")

// Every call to TikiClient will use the second_user credentials