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
Should be able to add at least locals object inside request object from middleware.
Should be able to access the locals object fromNextPageContext and NextApiRequest
Non-Goals
No response
Background
While using the middleware and not using next-auth, there is not way to add user set in request in middleware.js like we do in express like req.locals.user.
Proposal
I can contribute if someone can explain the directory structure.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Goals
localsobject insiderequestobject from middleware.localsobject fromNextPageContextandNextApiRequestNon-Goals
No response
Background
While using the middleware and not using
next-auth, there is not way to adduserset in request in middleware.js like we do in express likereq.locals.user.Proposal
I can contribute if someone can explain the directory structure.
All reactions