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
Kamil Kalisz
12/16/2021, 3:28 PM
I’m using this with Firebase bearer tokens
p
Paul Weber
12/16/2021, 4:45 PM
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.