chatkit-android
chatkit-android copied to clipboard
ChatkitTokenProvider.authData is not added to body of request
Debuging into the code, when this is called...
private fun FormBody.Builder.add(map: Map<String, String>) = {
for ((k, v) in map) {
add(k, v)
}
}
...from...
private fun requestBody(tokenParams: Any?) = FormBody.Builder().apply {
add("grant_type", "client_credentials")
add(authData)
if (tokenParams is ChatkitTokenParams) add(tokenParams.extras)
}.build()
...it doesn't modify the FormBody
I'm having the exact same issue, is there any information as to why this happens or how to resolve it? It's been a year since this issue was opened.