fallback to init route if token not found
This commit is contained in:
+3
-1
@@ -45,8 +45,10 @@ class VBoxRootComponent(
|
||||
if (it != null) {
|
||||
val invalid = runCatching { healthCheck.check() }.getOrNull() == null
|
||||
if (invalid) { navReplace(initRoute) }
|
||||
} else {
|
||||
navReplace(initRoute)
|
||||
}
|
||||
}
|
||||
} // i love you
|
||||
}
|
||||
}
|
||||
scope.launch {
|
||||
|
||||
Reference in New Issue
Block a user