https://kotlinlang.org logo
#kvision
Title
# kvision
r

rocketraman

05/10/2022, 1:26 PM
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

Robert Jaros

05/10/2022, 5:04 PM
Please fill an issue. I think it should be possible with some internal promise chaining.
👍 1
r

rocketraman

05/10/2022, 5:20 PM
31 Views