felix
felix
NNuxt
Created by felix on 10/14/2024 in #❓・help
Auth cookie being refreshed during SSR
Might want to open an issue about it. Daniel is active on GitHub
8 replies
NNuxt
Created by felix on 10/14/2024 in #❓・help
Auth cookie being refreshed during SSR
Yeah I agree, but there could be security reasons
8 replies
NNuxt
Created by felix on 10/14/2024 in #❓・help
Auth cookie being refreshed during SSR
This is a great idea but we solved it another way. We just changed the API to not auto refresh the token. But I think the underlying issue here is still annoying. We used this principal to pass headers from fetches called from our Client SSR request https://nuxt.com/docs/getting-started/data-fetching#passing-headers-and-cookies While it worked to refresh cookies for the client when Nuxt renders the Client SSR it will do internal fetches to resolve your useAsyncData calls it will not use the updated credentials but instead to old ones. Im going to open an Issue about this aswell 🙂 Here is a better explaination of what we used before: https://github.com/nuxt/nuxt/issues/13096#issuecomment-1397311005
8 replies