Hi I am using Ktor as a common library to fetch da...
# multiplatform
h
Hi I am using Ktor as a common library to fetch data from remote, our company backend api's are organized in such a way that process is, first we need to do post Method SSoAuth call which will return ngssosession token with cookies which also have session related information, for next consecutive remote calls cookie should also be passed to get valid response, through I am installing HttpCookies while creating client I am unable to achieve this, any help would be appreciable My client is created using below code in KMP
Copy code
private val client by lazy {
    HttpClient {
        install(HttpCookies) {
            storage = ConstantCookiesStorage()
            cookiesStorage = storage
        }
        install(JsonFeature) {
            serializer = KotlinxSerializer(Json {
                ignoreUnknownKeys = true
                isLenient = true
            })
        }
    }
}