From 0c038fe708d8a84a76a219ac0ba7e881e4e8119c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Sun, 17 Mar 2024 13:44:54 -0400 Subject: [PATCH] refactor(pages): add `getSession` call to new story page --- pages/new-story.vue | 3 +++ 1 file changed, 3 insertions(+) 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"], });