Replace handleSocialLogin with real OAuth implementation
cgen-6fcd0f9792a5403fb385133b68f914bb
This commit is contained in:
parent
31c5ceec3d
commit
b7101f92a0
1 changed files with 4 additions and 5 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue