diff --git a/README.md b/README.md index 1a97b18..d06ce67 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,8 @@ Crowdin

- App Store
- Play Store soonβ„’ + App Store + GetItOnGooglePlay_Badge_Web_color_English

[Sofa](https://sofa.watch) is a self-hosted movie and TV tracker for nerds. Track what you've watched, discover what's next, and plug your data into your existing home media stack. All without anything leaving your homelab. 🍿 diff --git a/apps/native/package.json b/apps/native/package.json index 3d55484..388522d 100644 --- a/apps/native/package.json +++ b/apps/native/package.json @@ -33,7 +33,7 @@ "@react-native-menu/menu": "2.0.0", "@react-navigation/elements": "2.9.11", "@react-navigation/native": "7.1.34", - "@sentry/react-native": "8.5.0", + "@sentry/react-native": "8.6.0", "@shopify/flash-list": "2.0.2", "@sofa/api": "workspace:*", "@sofa/i18n": "workspace:*", @@ -85,7 +85,7 @@ "react-native-worklets": "0.7.2", "tailwind-merge": "catalog:", "tailwindcss": "catalog:", - "uniwind": "1.6.0", + "uniwind": "1.6.1", "zeego": "3.0.6", "zod": "catalog:" }, diff --git a/apps/native/src/app/(auth)/login.tsx b/apps/native/src/app/(auth)/login.tsx index ec215cd..c8f0a1f 100644 --- a/apps/native/src/app/(auth)/login.tsx +++ b/apps/native/src/app/(auth)/login.tsx @@ -41,7 +41,7 @@ export default function LoginScreen() { const [errorFields, setErrorFields] = useState>(new Set()); const [isSignedIn, setIsSignedIn] = useState(false); - const authConfig = useQuery(orpc.system.authConfig.queryOptions()); + const publicInfo = useQuery(orpc.system.publicInfo.queryOptions()); const form = useForm({ defaultValues: { email: "", password: "" }, @@ -76,9 +76,9 @@ export default function LoginScreen() { const statusCompletedColor = useCSSVariable("--color-status-completed") as string; const serverHost = splitUrl(getServerUrl()).host; - const showPasswordLogin = !authConfig.data?.passwordLoginDisabled; - const showOidc = authConfig.data?.oidcEnabled; - const showRegister = authConfig.data?.registrationOpen; + const showPasswordLogin = !publicInfo.data?.passwordLoginDisabled; + const showOidc = publicInfo.data?.oidcEnabled; + const showRegister = publicInfo.data?.registrationOpen; const clearFieldError = (name: string) => { if (errorFields.has(name)) { @@ -94,7 +94,7 @@ export default function LoginScreen() { {showOidc && (() => { - const providerName = authConfig.data?.oidcProviderName ?? "SSO"; + const providerName = publicInfo.data?.oidcProviderName ?? "SSO"; return (