Get Current Logged in Member
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.
Example Usage
final LMResponse<User> response = await lmChatClient.getLoggedInUser();
if (response.success) {
User loggedInUser = response.data!;
// Handle the logged-in user data
} else {
// Handle error
handleError(response);
}