K1nggor
Routing - Same component with multiple page
I have a list and a dialog/modal for the detail of each element. I want to change the route from : items to items/:itemId when the modal is open. so the users can share the page with the modal open to the right element.
How can I have multiple pages redirecting to the same component ? When I use the same components in both pages there is a blink when the new page is loaded meaning that it reloaded the sub component
1 replies
Nuxt 3 server directory and server middlewares
Is there an example, a tutorial or a documentation on how server middlewares work in detail? I have read the nuxt 3 server directory documentation countless times but it doesn't really dive into the descriptions of the possibilities. Is it possible to run middlewares only on certain routes. How can we chain middlewares ? If we can chain them, how do we manage to order them. Most of the packages out there for server side in nodejs work with express. Will we have the same packages (oauth2orize for example) in nuxt server directory or a compatibility module handling the usage of express plugins?
3 replies
Oauth2 self and Nuxt hosted server provider
Hello everyone,
I'm looking to add a self hosted oauth2 server provider in my nuxt 3 application. I tried with oauth2orize and passport before discovering that this package is dependant of express as it uses its types and request and response objects. I didn't find a solution yet. Will the future @nuxt/auth will also integrate server side auth with maybe furthers login options like self hosted oauth2 server or is it only client side auth management?
Are there another package that could fit my need or maybe a trick with oauth2orize?
Maybe a future h3 plugin?
I don't want to use other applications like NestJS, Express or Koa but I want to do everything with the new Nuxt 3 server directory 🙂
3 replies