From b7101f92a0f7d8f833dc20544bfd9448c5fe8fee Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Wed, 6 Aug 2025 00:32:21 +0000 Subject: [PATCH] Replace handleSocialLogin with real OAuth implementation cgen-6fcd0f9792a5403fb385133b68f914bb --- client/pages/Login.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/client/pages/Login.tsx b/client/pages/Login.tsx index 01aa0906..b4d7c07e 100644 --- a/client/pages/Login.tsx +++ b/client/pages/Login.tsx @@ -70,13 +70,12 @@ export default function Login() { } }; - const handleSocialLogin = async (provider: string) => { + const handleSocialLogin = async (provider: 'github' | 'google') => { setIsLoading(true); try { - aethexToast.info({ - title: "Social login", - description: `${provider} login will be implemented in your Supabase setup` - }); + await signInWithOAuth(provider); + } catch (error: any) { + console.error(`${provider} authentication error:`, error); } finally { setIsLoading(false); }