Integrating a token-based authorization system wit...
# kvision
r
Integrating a token-based authorization system with kvision RPCs. I see that this can be done with
requestFilter: (RequestInit.() -> Unit
, however that lambda is non-suspending, which makes integrating with something that might need to do a suspending call to refresh a token unnecessarily difficult, especially with the lack of
runBlocking
on JavaScript. Thoughts on making that suspending to enable this kind of use case?
r
Please fill an issue. I think it should be possible with some internal promise chaining.
👍 1
r