17 lines
363 B
Vue
17 lines
363 B
Vue
<template>
|
|
<NuxtLayout>
|
|
<NuxtPage />
|
|
</NuxtLayout>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { onMounted } from 'vue';
|
|
|
|
const { fetchMe } = useAuth();
|
|
|
|
// Fetch the user state ONLY on the client-side after the app has mounted.
|
|
// This ensures the browser's cookies are sent, allowing the session to persist.
|
|
onMounted(() => {
|
|
fetchMe();
|
|
});
|
|
</script> |