ninjaparade
ninjaparade
NNuxt
Created by Eric on 4/9/2024 in #❓・help
SSR and cookies
I’m a bit confused I linked you how to do this above. There is also nuxt auth utils what issue are you trying to solve that isn’t covered in the above link?
8 replies
NNuxt
Created by Eric on 4/9/2024 in #❓・help
SSR and cookies
my current experience is that it seems that locally with HMR running, the first load the SSR happens more than 1 times, the first few return as though there is no cookie or value, but then the last one does. are you experiencing something similar?
8 replies
NNuxt
Created by Eric on 4/9/2024 in #❓・help
SSR and cookies
I am trying to work through this myself as well, currently I am using the parseCookies composable on a global server middleware and setting that cookie value that I need for the auth (api token) to the event.context.${yourObject} as shown here https://nuxt.com/docs/guide/directory-structure/server#server-middleware
8 replies