
* Require only partial of req - headers - in processProtectedHandler * Update .changeset/tough-tips-judge.md Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com> --------- Co-authored-by: Krzysztof Wolski <krzysztof.k.wolski@gmail.com>
337 B
337 B
@saleor/app-sdk |
---|
patch |
processProtectedHandler no longer requires a full NextApiRequest object as an argument. Now only the headers
property is required to satisfy the type safety.
Thanks to that, some requests like HTML
with tokens in BODY can be validated. Till now only fetch/ajax calls could have been validated