rm logout action in gigawear
This commit is contained in:
@@ -66,7 +66,12 @@ class HttpModule {
|
||||
newToken.toKtor()
|
||||
} catch (e: HttpException) {
|
||||
if (e.isServerFailure()) throw e
|
||||
koin.getOrNull<LogoutAction>()?.logout()
|
||||
val action = koin.getOrNull<LogoutAction>()
|
||||
if (action == null) {
|
||||
tokenStorage.clear()
|
||||
} else {
|
||||
action.logout()
|
||||
}
|
||||
null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user