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);
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);
}