Skip to main content

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.

PropertyTypeDescriptionOptional
lmChatClientLMClientThe chat client instance.
userDetailsUserDetailsDetails of the logged-in user.
customComponentsCustomComponentsCustom components for chat UI.✔️
lmChatThemeLMChatThemeCustom components for chat UI.✔️

UserDetails

PropertyTypeDescriptionOptional
usernamestringThe username of the user.
uuidstringThe universally unique identifier.
isGuestbooleanIndicates if the user is a guest.
accessTokenstringThe access token for authentication.
refreshTokenstringThe refresh token for authentication.
apiKeystringThe 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