How to use jetpack datastore with retrofit interce...
# android
r
How to use jetpack datastore with retrofit interceptor to append header on every request? Datastore doesn't seem to support return type without Flow api.
u
interceptors are blocking, so you can only do that,
runBlocking
👍 1
m
you can inject datastore object. and for return type you can use _datastore.anyvariable._*first()*
👍 1
167 Views