Replace handleSocialLogin with real OAuth implementation

cgen-6fcd0f9792a5403fb385133b68f914bb
This commit is contained in:
Builder.io 2025-08-06 00:32:21 +00:00
parent 31c5ceec3d
commit b7101f92a0

View file

@ -70,13 +70,12 @@ export default function Login() {
} }
}; };
const handleSocialLogin = async (provider: string) => { const handleSocialLogin = async (provider: 'github' | 'google') => {
setIsLoading(true); setIsLoading(true);
try { try {
aethexToast.info({ await signInWithOAuth(provider);
title: "Social login", } catch (error: any) {
description: `${provider} login will be implemented in your Supabase setup` console.error(`${provider} authentication error:`, error);
});
} finally { } finally {
setIsLoading(false); setIsLoading(false);
} }