@worldcoin/idkit-core 4.0.13 → 4.0.15-dev.0587d15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,7 +16,10 @@ The RP signature authenticates your verification requests. Generate it server-si
16
16
  import { signRequest } from "@worldcoin/idkit-core/signing";
17
17
 
18
18
  // Never expose RP_SIGNING_KEY to clients
19
- const sig = signRequest("my-action", process.env.RP_SIGNING_KEY);
19
+ const sig = signRequest({
20
+ action: "my-action",
21
+ signingKeyHex: process.env.RP_SIGNING_KEY!,
22
+ });
20
23
 
21
24
  // Return to client
22
25
  res.json({
@@ -50,6 +53,7 @@ const request = await IDKit.request({
50
53
  signature: rpSig.sig,
51
54
  },
52
55
  allow_legacy_proofs: false,
56
+ return_to: "myapp://idkit/callback",
53
57
  }).preset(orbLegacy({ signal: "user-123" }));
54
58
 
55
59
  // Display QR code for World App
@@ -114,10 +118,10 @@ const { success } = await response.json();
114
118
 
115
119
  Pure JS subpath exports are available for server-side use without WASM initialization:
116
120
 
117
- | Subpath | Exports |
118
- | ---------- | ---------------------------------------------------------------- |
119
- | `/signing` | `signRequest`, `computeRpSignatureMessage`, `RpSignature` (type) |
120
- | `/hashing` | `hashSignal` |
121
+ | Subpath | Exports |
122
+ | ---------- | ----------------------------------------------------------------------------------------- |
123
+ | `/signing` | `signRequest`, `computeRpSignatureMessage`, `RpSignature` and `SignRequestParams` (types) |
124
+ | `/hashing` | `hashSignal` |
121
125
 
122
126
  ```typescript
123
127
  import { signRequest } from "@worldcoin/idkit-core/signing";
Binary file