diff --git a/composables/session.ts b/composables/session.ts index 1031183..18345cf 100644 --- a/composables/session.ts +++ b/composables/session.ts @@ -2,5 +2,8 @@ export const useAccountSession = () => useFetch( "/api/auth/session", { transform: (input) => input === undefined ? false : input, + getCachedData(key, nuxtApp) { + return nuxtApp.payload.data[key]; + }, } );