diff --git a/pages/new-story.vue b/pages/new-story.vue index 06403ba..0d3efbe 100644 --- a/pages/new-story.vue +++ b/pages/new-story.vue @@ -2,6 +2,9 @@ import storyForm from "~/components/story/create/storyForm.vue"; import { defaultStory } from "@client/types/form/story"; const ds = ref(defaultStory); + const { getSession } = useAuth(); + await getSession({ force: true }); + definePageMeta({ middleware: ["auth"], });