<template>
    <div class="flex h-full items-center justify-center">
        <p class="text-neutral-500">{{ $t('auth.logout') }}...</p>
    </div>
</template>

<script setup lang="ts">
definePageMeta({ layout: 'auth' })

const auth = useAuthStore()
const { resetSidebar } = useSidebar()

onMounted(async () => {
    await auth.logout()
    resetSidebar()
    await navigateTo('/login')
})
</script>
