https://kotlinlang.org logo
#ktor
Title
# ktor
a

Arkangel

12/11/2020, 5:28 PM
seen this.. but it don’t work
Copy code
FuelManager.instance.addRequestInterceptor(tokenInterceptor())
fun tokenInterceptor() = {
    next: (Request) -> Request ->
    { req: Request ->
        req.header(mapOf("Authorization" to "Bearer AbCdEf123456"))
        next(req)
    }
}
n

Nikky

12/13/2020, 1:26 PM
maybe ask in #kotlin-fuel ?
🙌 1
5 Views