A
Alokaiyatharth2704

Unable to access cookies in composables

context.$bagisto.config.app.$cookies.set('vsf-bagCust-token', loginResult.data.api_access_token); my context does not have this config object and I am unable to figure out how to set this. Please help
R
rohrig395d ago
hi @Yatharth 👋 , what version of vue-storefront/core do you have?
Y
yatharth2704395d ago
2.5.4
R
rohrig395d ago
please try upgrading to :
@vue-storefront/core: "~2.7.5"
"@vue-storefront/middleware": "~2.7.5",
"@vue-storefront/nuxt": "~2.7.5",
"@vue-storefront/nuxt-theme": "~2.7.5",
@vue-storefront/core: "~2.7.5"
"@vue-storefront/middleware": "~2.7.5",
"@vue-storefront/nuxt": "~2.7.5",
"@vue-storefront/nuxt-theme": "~2.7.5",
Y
yatharth2704395d ago
will it create any issues in my existing code? like any dependency issue? @rohrig ?
R
rohrig395d ago
I just tried it in another project and everything appeared to work fine. You should test things on your own to be sure
Y
yatharth2704395d ago
okay thanks can you explain like why is this issue happening for my future understanding? @rohrig
R
rohrig395d ago
I was working on another issue where the context was missing and updating fixed it. I think that in the updated version the cookies are added to the context where they weren't before.
Y
yatharth2704395d ago
oh okay even after updating unable to get cookie { "$bagisto": { "api": {}, "config": { "axios": { "baseURL": "http://192.168.29.159:3000/api", "headers": {} } } } } this is the object that I am getting when I print the context @rohrig
R
rohrig395d ago
can you provide a minimal reproduction?
Y
yatharth2704395d ago
I don't know how to do that please explain a little on how to create a minimal reproduction
R
rohrig395d ago
create a public repo with the minimum amount of code you need to demonstrate the issue. 😄 then provide the link here
Y
yatharth2704395d ago
oh okay
UU
Unknown User392d ago
Want results from more Discord servers?
Add your server
More Posts
VSF UI 2 with ecommerce-integration-boilerplateHi, I hope this isn't a silly question :). Is it possible to use the new UI with the boilerplate fouWhat version of Node?Noob question. I was trying to create a storefront with spree and got the following error: error @vuHow to add custom function to a composableimport { Context, useFacetFactory, FacetSearchResult } from '@vue-storefront/core'; import typGet product details and Static block from magento 2 backend to VueStoreFront.Hi, I have a doubt. I need to call static block from magento to vuestorefront homepage someone pleasPossible Memory leak in vuestorefront-apiHi, we are using vuestorefront 1, problem we facing at the moment is that with time the api server iHow to detect if a page has an error inside the layoutInside the default layout I need to detect if there is an error page displayed (like for example a 4Contribution via a specific issueHello. I opened this **issue** (https://github.com/vuestorefront/vue-storefront/issues/6891). I workUnable to change the color of the SFheaderunable to change the background-color of Sf header can someone please helpVSF Redis cache - dynamic parts will be disappeared after a whileHi everybody, we have implemented redis cache with VSF project (SSR Cache), but we faced an issue,Can't we use REST Apis with Vue storefrontIs it necessary to use GraphQl in vuestorefront?Is Bagisto integration with Vue Storefront Deprecated?Please explainWeird url parametersHello 🙂 My Product Id seems whack or not VSF friendly. The are formatted as rest style urls: `"gidSSR Cache - default invalidation handlerAs I saw the previous channel archived, so here we can continue discussion about cache.. @7s @TautvVue Storefront Discord revampDear community! We would like to carry out a complete revamp of our Discord channels and one of th