mirror of
https://github.com/Paris-est-Ludique/ForceOrange.git
synced 2025-09-11 14:36:29 +02:00
✨ Complete all user management with forms and DB
This commit is contained in:
committed by
ChatonDeAru (Romain)
parent
37b2238b84
commit
5fa1f24caf
@@ -1,3 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
const { auth } = useSupabaseClient()
|
||||
|
||||
auth.onAuthStateChange(async (event) => {
|
||||
if (event === 'SIGNED_OUT')
|
||||
navigateTo('/')
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<NuxtLayout>
|
||||
<NuxtPage />
|
||||
|
Reference in New Issue
Block a user