Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Update initialize.tsx to redirect if no faceid (#520)

Leendert de Borst8b05d2aafa35
diff --git a/apps/mobile-app/app/initialize.tsx b/apps/mobile-app/app/initialize.tsx
index 34ebcee4a..56fb2ec08 100644
--- a/apps/mobile-app/app/initialize.tsx
+++ b/apps/mobile-app/app/initialize.tsx
@@ -199,9 +199,6 @@ export default function Initialize() : React.ReactNode {
return;
}
- // Add small delay for UX
- await new Promise(resolve => setTimeout(resolve, 500));
-
// Check if the vault needs migration before syncing
if (await dbContext.hasPendingMigrations()) {
router.replace('/upgrade');
@@ -211,6 +208,11 @@ export default function Initialize() : React.ReactNode {
// Vault unlocked successfully - now allow skip button for network operations
canShowSkipButtonRef.current = true;
}
+ else {
+ // No FaceID, redirect to unlock screen for manual unlock
+ router.replace('/unlock');
+ return;
+ }
}
} catch (err) {
console.error('Error during initial vault unlock:', err);