qdsfdhvh/compose-imageloader

Basic Http Auth ?

Closed this issue · 2 comments

How to Add basic auth to load image ?

You can customise ktor to do this:

ImageLoader {
    components {
        setupDefaultComponents(
            httpClient = {
                HttpClient {
                    defaultRequest {
                        basicAuth("username", "password")
                    }
                }
            }
        )
    }
}

Thank you ❤️.
this is working very good.