Replies: 1 comment 1 reply
-
|
This is somewhat intentional, and there isn't currently a way around it, but something I am open to exploring. The issue is that some auth checks rely on arguments and the only way to make this type-safe and work predictably is for validation to run first. I'm curious what kinds of validation you are doing that you want auth to run first? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I am using both the
InputValidationPlugin, theErrorsPluginand theAuthScopesPluginand everything works mostly fine.The only problem I have is that the
InputValidationPluginis run before theAuthScopesPlugin, no matter the order in which I pass them to the builder'spluginsarray. Which results in mutations' payloads being validated before checking if the user is authorized, which shouldn't happen.I have tried modifying the order of the plugins specified in the builder options already and it does not seem to matter (which is weird).
I'm probably doing something wrong here. I have already read the docs countless times and finally decided to ask a question.
Is there any way I can force the execution of the
AuthScopesPluginbeforeInputValidationPluginruns?This is my current builder options:
Beta Was this translation helpful? Give feedback.
All reactions