diff --git a/frontend/src/components/auth/LoginForm.vue b/frontend/src/components/auth/LoginForm.vue index b1da660..fdabf17 100644 --- a/frontend/src/components/auth/LoginForm.vue +++ b/frontend/src/components/auth/LoginForm.vue @@ -2,7 +2,6 @@ import { ref } from 'vue' import { useRouter } from 'vue-router' import { useAuthStore } from '@/stores/auth' -import { supabase } from '@/supabase' import { useI18n } from 'vue-i18n' const emit = defineEmits(['toggle']) @@ -46,47 +45,12 @@ const navigateByUserRole = (role: string) => { else router.push('/map') } -const handleGoogleLogin = async () => { - isLoading.value = true - errorMessage.value = '' - console.log('Iniciando Google Login...') - try { - const { error } = await supabase.auth.signInWithOAuth({ - provider: 'google', - options: { - redirectTo: window.location.origin - } - }) - if (error) throw error - // Se redirige automáticamente - } catch (error: any) { - console.error('Error Google Login:', error) - errorMessage.value = `Error Google: ${error.message || t('common.error')}` - } finally { - isLoading.value = false - } -}