<template>
  <NuxtLayout>
    <NuxtPage />
  </NuxtLayout>
</template>

<script setup lang="ts">
const { fetchMe } = useAuth();

// Fetch the user state once on app startup.
// This call is not awaited to avoid blocking the render.
// The `initialized` guard inside `useAuth` prevents multiple calls.
fetchMe();
</script>