Skip to content

Commit bf7e9cf

Browse files
fix(webhooks): typo
1 parent 897eb31 commit bf7e9cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/webhooks/security.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ async function getOrgPublicKey(orgId: string): Promise<string> {
9696
`https://webhooks.sls.epilot.io/v1/webhooks/.well-known/public-key?orgId=${orgId}`
9797
);
9898
const data = await response.json();
99-
return data.publicKey;
99+
return data.public_key;
100100
}
101101

102102
async function verifyAsymmetric(req: Request, orgId: string): Promise<boolean> {
@@ -167,7 +167,7 @@ Response:
167167

168168
```json
169169
{
170-
"publicKey": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEA...\n-----END PUBLIC KEY-----\n"
170+
"public_key": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEA...\n-----END PUBLIC KEY-----\n"
171171
}
172172
```
173173

0 commit comments

Comments
 (0)