From 3273e7a0fbbce82f4ce6cacbcdb7b6d6848f6c1b Mon Sep 17 00:00:00 2001 From: JustZvan Date: Mon, 6 Apr 2026 15:32:51 +0200 Subject: feat: gallery scanning preferences --- app/(auth)/signin.tsx | 40 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) (limited to 'app/(auth)/signin.tsx') diff --git a/app/(auth)/signin.tsx b/app/(auth)/signin.tsx index 1eac63b..e2d0eda 100644 --- a/app/(auth)/signin.tsx +++ b/app/(auth)/signin.tsx @@ -12,12 +12,18 @@ import { } from "react-native"; import { SafeAreaView } from "react-native-safe-area-context"; import { useAuth } from "../../lib/auth"; +import { useGoogleAuth } from "../../lib/google-auth"; import { t } from "../../lib/locales"; import { colors } from "../../lib/theme"; import { Button, H1, Muted, TextInput } from "../../lib/ui"; export default function SignIn() { const { signIn } = useAuth(); + const { + continueWithGoogle, + isLoading: googleLoading, + error: googleError, + } = useGoogleAuth(); const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); const [loading, setLoading] = useState(false); @@ -55,7 +61,7 @@ export default function SignIn() { if (!result.success) { setError(result.reason || t("signInError")); } - } catch (e) { + } catch { setError(t("signInError")); } finally { setLoading(false); @@ -103,14 +109,36 @@ export default function SignIn() { error={passwordError} /> + router.push("/(auth)/reset-password")} + style={styles.forgotPasswordLinkContainer} + > + {t("forgotPassword")} + + {error ? {error} : null}