Skip to content

Commit 2a78c7b

Browse files
authored
docs: change the signature verify warning to emphasize that raw body needs to be used (#384)
1 parent df9bac8 commit 2a78c7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qstash/howto/signature.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ err := receiver.Verify(qstash.VerifyOptions{
8282
```
8383
</CodeGroup>
8484

85-
<Warning>In JavaScript, the body could be presented by an object via the HTTP handler if it is a JSON. Don't forget to convert to string first via JSON.stringify(body)</Warning>
86-
85+
<Warning>Depending on the environment, the body might be parsed into an object by the HTTP handler if it is JSON.
86+
Ensure you use the raw body string as is. For example, converting the parsed object back to a string (e.g., JSON.stringify(object)) may cause inconsistencies and result in verification failure.</Warning>
8787

8888
### Manual verification
8989

0 commit comments

Comments
 (0)