Skip to content

Commit c063624

Browse files
author
madhavanmalolan
committed
json in callback
1 parent 8a570a1 commit c063624

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/docs/js-sdk/preparing-request.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ reclaimProofRequest.setParams({
9292

9393
## Set Callback
9494
```
95-
reclaimProofRequest.setAppCallbackUrl(url)
95+
reclaimProofRequest.setAppCallbackUrl(url, useJson)
9696
```
9797
Set a backend callback URL where Reclaim Protocol will POST proofs directly after verification. This enables secure backend proof processing without relying on frontend to upload the proof.
98+
99+
If `useJson` is set to `true`, it will send the proof as a raw JSON. Else, the POST body will contain the Proof JSON urlencoded.

0 commit comments

Comments
 (0)