You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.
With further investigation this does not work, as the module setup runs at "build time" before the user nuxt app, so at that point any user middlewares are not in the middleware array yet, so unshifting does not have any effect.
Goal:
always register session middleware first
with reasonable precision
optional: allow user to set order (this could be helpful with other modules that should come before / after this session middleware)
Additional information
No response
The text was updated successfully, but these errors were encountered:
Describe the feature
Currently, we attempt to ensure that the server session middleware is always first by using
.unshit
to register it:nuxt-session/src/module.ts
Lines 80 to 86 in f82d2c1
This attempt however does not work, as noticed by discord user Bark: https://discord.com/channels/1024643779711483944/1024705710455533598/1045816936359010326
With further investigation this does not work, as the module setup runs at "build time" before the user nuxt app, so at that point any user middlewares are not in the middleware array yet, so
unshift
ing does not have any effect.Goal:
Additional information
No response
The text was updated successfully, but these errors were encountered: