saleor-app-sdk-REDIS_APL/.changeset/tough-tips-judge.md
Lukasz Ostrowski ab24968b67
Require only partial of req - headers - in processProtectedHandler (#224)
* 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>
2023-04-11 10:55:51 +02:00

7 lines
337 B
Markdown

---
"@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 <form> with tokens in BODY can be validated. Till now only fetch/ajax calls could have been validated