//core/com.kustomer.core.providers/KusChatProvider/logIn
[androidJvm]
abstract suspend fun logIn(jwtToken: String): KusResult<KusIdentifiedCustomer>
Returns KusIdentifiedCustomer as success response Generate a JWT Token on your backend server which should be passed in this function’s parameter For more information, Refer this link
Await this call before calling createConversation or opening chat (Kustomer.open / openNewConversation), so the new conversation belongs to this customer. The SDK also holds conversation create and handoff until an in-flight logIn finishes. When the app returns to the foreground and the conversation must belong to the identified customer, call logIn again and await it before opening chat.
Note: This is a suspend function and should be called from Kotlin Coroutines
KusResult of type KusIdentifiedCustomer
androidJvm
| jwtToken | This should be generated on your backend server for security reasons |