diff --git a/components/BottomMenu.vue b/components/BottomMenu.vue index 3a10215..2d995cf 100644 --- a/components/BottomMenu.vue +++ b/components/BottomMenu.vue @@ -17,7 +17,7 @@ import { UserTokenInfo } from '~/server/models/UserTokenInfo'; import { userTokensKey } from '~/server/utils/utils'; -const cookie = useCookie('app-auth') +const cookie = useCookie(cookieAuthKey) const cookiePayload = cookie.value ? decodeJwt(cookie.value) : undefined const userEmail = cookiePayload?.email?.toString() const signout = () => { diff --git a/layouts/install-layout.vue b/layouts/install-layout.vue index ab9a748..c2bc697 100644 --- a/layouts/install-layout.vue +++ b/layouts/install-layout.vue @@ -12,5 +12,5 @@ \ No newline at end of file diff --git a/pages/index.vue b/pages/index.vue index c58d963..32eca08 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -62,7 +62,7 @@ definePageMeta({ const route = useRoute() const router = useRouter() -const cookie = useCookie('app-auth') +const cookie = useCookie(cookieAuthKey) const isLoggedIn = computed(() => cookie.value ? true : false) if (isLoggedIn.value) { if (process.client) { diff --git a/pages/install/[publicId]/index.vue b/pages/install/[publicId]/index.vue index 05ac165..d4a6719 100644 --- a/pages/install/[publicId]/index.vue +++ b/pages/install/[publicId]/index.vue @@ -76,7 +76,7 @@ useSeoMeta({ const { download, isDownloading } = useDownloadArtifact(appName.toString(), orgName.toString()) -const cookie = useCookie('app-auth') +const cookie = useCookie(cookieAuthKey)