Did someone manage to use JWT with a Ktor client? ...
# ktor
c
Did someone manage to use JWT with a Ktor client? The documentation doesn't even say if it's possible or not
a
c
Oh, is that JWT-compatible? I'll try having the JWT token there, but what's the refreshToken ?
a
I’ve done something like this
Copy code
val res = <http://mClient.post|mClient.post><T>("${baseURL}$mUrl") {
    body = query
    headers {
        if (token != null)
            append(HttpHeaders.Authorization, token)
    }
}
Screenshot 2021-06-09 at 5.52.32 PM.png