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