Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The middleware should be invoked through the preinvoke chain #12

Open
yeshamavani opened this issue Mar 18, 2024 · 1 comment
Open

The middleware should be invoked through the preinvoke chain #12

yeshamavani opened this issue Mar 18, 2024 · 1 comment

Comments

@yeshamavani
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Right now the middleware is being called through the default chain
due to this it is being called before authentication and authorization in that case, we cant use CURRENT_USER to fetch and identify the tenantId of the user

Describe the solution you'd like
change the chain of the middleware

@yeshamavani
Copy link
Collaborator Author

creating a separate middleware in the @sourceloop/core that will be a part of the preinvoke middleware chain
and will call the action provider

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant