David De Sloovere

Results 99 comments of David De Sloovere

Some information from the logs. First line, "config created", show that a static singleton variable on the nitro side has been created. So I believe the process just booted up....

@kazupon sorry for tagging you directly, but what can we do or where can we start looking to get us going in the right direction on this issue?

> We need minimal reproduction, because we cannot debug. Here's a branch with the code from the OP that triggers the error. This throws locally, every time. https://github.com/DavidDeSloovere/nuxt-i18n-nitro-issue31/blob/in-request-hook/server/plugins/translationInHook.ts I'm also...

> I'm not having success using this template at all, whether or not strip prefixes is checked I also thought it wasn't working. Deleted the whole thing. Created a new...

The problem is with H3 that does not have cookie chunking for the session data, which is used by nuxt-auth-utils. See https://github.com/h3js/h3/blob/main/src/utils/session.ts

I've created this issue in H3: https://github.com/h3js/h3/issues/1062 I believe this issue here can be closed.

Chunking of session cookie is coming in H3 v3, which will be used by Nuxt v5. We'll have to wait a bit and keep the workarounds _around_.

> Try event.$fetch for forwarding context and headers https://nuxt.com/docs/guide/directory-structure/server#forwarding-context-headers The should indeed forward the session cookie - but there are issues if you have updated the session though, as mentioned...

> > If you make an API call that update the session / cookie on server-side, you need to tell the Vue composable to refresh it self: > > >...

Minutes after I submitted this, I wondered if the problem isn't the redirect from the auth module. If I'm correct, `sendRedirect` is not awaited as it should in https://github.com/sidebase/nuxt-auth/blob/faa039b72da2c64d9c214f0502dea053c7a4ff84/src/runtime/server/services/authjs/nuxtAuthHandler.ts#L176 I...