mrkaashee
mrkaashee
I initially thought it was an issue with Nuxt Auth Utils, but after digging in, I found that the root cause is in `Nitro` — specifically, `defineCachedEventHandler` clones the `req/res`...
No worries — I found a workaround that works well! You can use `defineEventHandler` to handle session logic (e.g. `getUserSession()`), and then call a `defineCachedFunction` inside it, passing the `user`/`session`...
I’ve documented the details here: [https://github.com/nitrojs/nitro/issues/3468](https://github.com/nitrojs/nitro/issues/3468)