From 4e4ddd3630d8867b0a803cccb092701cc856626b Mon Sep 17 00:00:00 2001 From: Hailey Date: Fri, 18 Jul 2025 00:39:15 -0700 Subject: [PATCH] force enable oauth --- src/screens/Login/LoginForm.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/screens/Login/LoginForm.tsx b/src/screens/Login/LoginForm.tsx index 12e8f7f3fc..9c6afa135d 100644 --- a/src/screens/Login/LoginForm.tsx +++ b/src/screens/Login/LoginForm.tsx @@ -13,7 +13,6 @@ import { import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' -import {USE_OAUTH} from '#/lib/app-info' import {useRequestNotificationsPermission} from '#/lib/notifications/notifications' import {isNetworkError} from '#/lib/strings/errors' import {cleanError} from '#/lib/strings/errors' @@ -54,7 +53,7 @@ interface LoginFormProps { } export function LoginForm(props: LoginFormProps) { - if (USE_OAUTH) { + if (true) { return } else { return @@ -76,8 +75,13 @@ function OAuthLoginForm({ const onPressNext = async () => { setIsProcessing(true) if (isWeb) { - const client = getWebOAuthClient() - await client.signIn(identifierValueRef.current) + try { + const client = getWebOAuthClient() + await client.signIn(identifierValueRef.current) + } catch (e: any) { + logger.error(e) + setError(_(msg`An error occurred during authentication.`)) + } } else { const client = getNativeOAuthClient() const res = await client.signIn(identifierValueRef.current)