Is there a good way of redirecting on 401s to the ...
# multiplatform
s
Is there a good way of redirecting on 401s to the login screen? https://discuss.kotlinlang.org/t/401-global-intercept-to-popup-login-form/29537
h
Mobile or web?
s
Android, iOS, desktop, web
h
Depends how your navigation is driven, ideally your starting destination should not be the "Login" you only navigate to the Login when you need to auth the user and pop back immediately from that screen. You can have a global listener that receivs 401 events and dispatches to a listener from where you consume and navigate to the Login, it can be done from any dept of the app