Thanks! The request works fine. But I'm having iss...
# kvision
m
Thanks! The request works fine. But I'm having issue figuring out how I can access the header ("Authorization: "Barer eyJraWQiO...") in the response. I haven't got that far yet but I guess I can access deserializer = Object.serialzer().list.
Copy code
private fun authenticate() {
        val restClient = RestClient()
        val resultPromise = restClient.remoteCall(
                "<https://api.test.com/authenticate>",
                JSON.stringify(formPanel.getData()),
                <http://HttpMethod.POST|HttpMethod.POST>
		transform = //Do something to get header
        )
                resultPromise.then(onFulfilled = { result: dynamic -> console.log(result.header) })
    }