๐๏ธ Initiate User
To start using the LikeMinds Chat and enable personalized experiences for your users, you need to initiate them within the system. This process associates a user in your application with a user in the LikeMinds Chat, allowing for seamless integration and real-time messaging in your application.
๐๏ธ Validate User
The validateUser method is used to validate a user session. This function ensures that the user session is active and the provided access and refresh tokens are valid. This method helps maintain secure and authenticated access to the LikeMinds Chat SDK.
๐๏ธ Logout User
To disconnect a user (say that youโre for instance logging out and logging in as someone new) you can call the logout() method present in LMChatClient class.
๐๏ธ Edit Profile
The editProfile function allows users to update their profile details, such as their name, profile picture, widget ID, or additional metadata.
๐๏ธ Get All Members
The getAllMembers method is used to retrieve a list of members based on their state. This function supports pagination and provides detailed member data.
๐๏ธ Get Member State
When building out your chat experience, you might want to moderate some actions based on the state of a community member. That's where member state comes in. With a single getMemberState() function you can determine if a member is a CM, or not.
๐๏ธ Get Current Logged In Members
The getLoggedInUser() method retrieves the currently logged-in user's information. It returns a LMResponse<User> object, which contains the details of the user who is currently authenticated in the application.