feat(User): Add Logout

This commit is contained in:
2023-11-10 15:51:47 +01:00
parent 470efe6956
commit 5892921a7c
3 changed files with 28 additions and 1 deletions

5
pages/logout/index.vue Normal file
View File

@@ -0,0 +1,5 @@
<script setup lang="ts">
definePageMeta({ middleware: ['auth'] })
const { logout } = useAuth()
logout()
</script>