<script setup lang="ts">
// OAuth callback page - Supabase handles the token exchange automatically
const user = useSupabaseUser()

watch(user, (u) => {
  if (u) navigateTo('/')
}, { immediate: true })
</script>

<template>
  <UPageSection>
    <div class="text-center">
      <UIcon name="i-lucide-loader" class="animate-spin text-2xl" />
      <p class="mt-2 text-muted">Verificando...</p>
    </div>
  </UPageSection>
</template>
