feat: add useAuth composable with user tier detection

This commit is contained in:
Ovidiu U
2026-04-10 18:00:59 +01:00
parent 87e7a9aa84
commit 52bbfa5592
2 changed files with 52 additions and 0 deletions

View File

@@ -3,5 +3,13 @@
</template>
<script setup>
import { onMounted } from 'vue'
import { RouterView } from 'vue-router'
import { useAuth } from './composables/useAuth.js'
const { fetchUser } = useAuth()
onMounted(async () => {
await fetchUser()
})
</script>