I am currently trying to build a KMM app with ktor...
# ktor
p
I am currently trying to build a KMM app with ktor-client for networking. I was looking at the Auth (specifically Bearer) plugin. Is it possible to set the
BearerTokens
from the outside somewhere on the
HttpClient
? Or is the only way these can be set via the
loadTokens
and
refreshTokens
closures?
k
I’m using this with Firebase bearer tokens
p
Actually, I misinterpreted the docs and
loadTokens
naming. Since
loadTokens
gets called on every single request, it’s very much possible to just have a local token store which can also be manipulated from the outside.