Skip to content

Commit

Permalink
docs: update constants
Browse files Browse the repository at this point in the history
  • Loading branch information
francisfuzz committed Sep 16, 2024
1 parent 15ec544 commit 13fbe9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ const { isValid, cache } = await verifyRequestByKeyId(
);

// with cache
const cache = { id: "etag_value", keys: [{ key_identifier: "key1", key: "public_key1" }] };
const previousCache = { id: "etag_value", keys: [{ key_identifier: "key1", key: "public_key1", is_current: true }] };
const { isValid, cache } = await verifyRequestByKeyId(
request.body,
signature,
keyId,
{ cache }
{ cache: previousCache }
);
```

Expand Down

0 comments on commit 13fbe9e

Please sign in to comment.