You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for taking the time to fill out this feature request!"
I have searched the issue tracker for similar requests
Which @snicco/* package(s) are relevant/related of the feature request?
wp-nonce-middleware
Description
Currently, the VerifyWPNonce middleware handles two tasks.
Validating nonces for unsafe request methods.
Adding an instance of the nonce factory to view responses.
These two tasks should be split into separate middleware because currently is very painful to test Controllers if this middleware is applied globally as each request also needs to pass a valid nonce.
If the middleware is omitted for the tests, the views that use the WPNonce factory will throw exceptions because it was not added.
Proposed solution
//
Alternatives
//
The text was updated successfully, but these errors were encountered:
Thanks for taking the time to fill out this feature request!"
Which @snicco/* package(s) are relevant/related of the feature request?
wp-nonce-middleware
Description
Currently, the
VerifyWPNonce
middleware handles two tasks.These two tasks should be split into separate middleware because currently is very painful to test Controllers if this middleware is applied globally as each request also needs to pass a valid nonce.
If the middleware is omitted for the tests, the views that use the
WPNonce
factory will throw exceptions because it was not added.Proposed solution
//
Alternatives
//
The text was updated successfully, but these errors were encountered: