Open blaine-arcjet opened 2 months ago
See also: #1520
I looked into this a bit and it needs more work than just making it an async function because we can't assert the validation via TypeScript.
I think we're going to want to return a value that is the details passed to protect()
but I didn't get very far on that work before stashing it.
We may want to revisit the API of validate in entirety. For example, if you called
getBody()
inside it, how would you access the body inprotect()
?_Originally posted by @blaine-arcjet in https://github.com/arcjet/arcjet-js/pull/1300#discussion_r1723961227_