
* 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>
7 lines
337 B
Markdown
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
|