What is the replacement for `context.req` in a route middleware in nuxt 3?
I have an
auth
middleware, where I need the req
when it's on the server.
I have this kind of logic:
But in a route middleware you only have to
and from
In Nuxt 2 it worked like this:
1 Reply
Is it
useRequestEvent
? Seems to contain all the information!