2024-09-15 01:50:36 +02:00

14 lines
239 B
Vue

<script setup lang="ts">
const { auth } = useSupabaseClient()
auth.onAuthStateChange(async (event) => {
if (event === 'SIGNED_OUT')
navigateTo('/')
})
</script>
<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>