LMGlobalClientProviderContext
Introduction
The LMGlobalClientProviderContext provides global state utilities like LMClient. It is one of the core SDK context which stand on the very top layer of the component heirarchy.
| Property | Type | Description | Optional |
|---|---|---|---|
lmChatClient | LMClient | The chat client instance. | |
userDetails | UserDetails | Details of the logged-in user. | |
customComponents | CustomComponents | Custom components for chat UI. | ✔️ |
lmChatTheme | LMChatTheme | Custom components for chat UI. | ✔️ |
UserDetails
| Property | Type | Description | Optional |
|---|---|---|---|
| username | string | The username of the user. | ✅ |
| uuid | string | The universally unique identifier. | ✅ |
| isGuest | boolean | Indicates if the user is a guest. | ✅ |
| accessToken | string | The access token for authentication. | ✅ |
| refreshToken | string | The refresh token for authentication. | ✅ |
| apiKey | string | The API key for the user. | ✅ |
LMChatTheme
enum LMChatTheme {
COMMUNITY_CHAT = "COMMUNITY_CHAT",
NETWORKING_CHAT = "NETWORKING_CHAT",
COMMUNITY_HYBRID_CHAT = "COMMUNITY_HYBRID_CHAT",
}
Reference
For reference checkout this file