login without distant server local only mode

This commit is contained in:
m
2026-09-10 21:56:34 +02:00
parent cac2400917
commit 4e2d92a80e
6 changed files with 37 additions and 7 deletions
+3 -1
View File
@@ -27,9 +27,11 @@ function AuthGate() {
return (
<>
<Stack>
<Stack.Screen name="index" options={{ title: i18n.t('files') }} />
<Stack.Screen name="folder/[id]" options={{ title: i18n.t('folder') }} />
<Stack.Screen name="login" options={{ title: i18n.t('login_title') }} />
</Stack>
{/* Toute route est protégée tant qu'aucun compte n'est connecté. */}
{/* Rediriger vers la connexion uniquement si l'utilisateur n'a pas de session ET n'est pas en mode local. */}
{status === 'signedOut' ? <Redirect href="/login" /> : null}
</>
);