Middleware dependent in other middleware
Hi, I'm building a REST API and already have a middleware using HttpApiMiddleware called AuthenticationMiddleware and providers a CurrentUserSession tag. Now, I want to create another middleware to check if the user if present in an organization that will need the user to be authenticated first to read the CurrentUserSession.
How can I implement something like this?
How can I implement something like this?
