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);
|
||||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue