Is it possible to pass an object for use in controllers from a middleware? I created an authorization middleware for protected routes which calls AccessToken.verify, and I would like to pass the accessToken/user data from it's output to the next controller.
Is it possible to pass an object for use in controllers from a middleware? I created an authorization middleware for protected routes which calls AccessToken.verify, and I would like to pass the accessToken/user data from it's output to the next controller.