chatkit-android icon indicating copy to clipboard operation
chatkit-android copied to clipboard

ChatkitTokenProvider.authData is not added to body of request

Open nbransby opened this issue 6 years ago • 1 comments

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

nbransby avatar Jul 24 '18 09:07 nbransby

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.

amgregoi avatar Sep 06 '19 20:09 amgregoi