Skip to content

Commit 1a6f0db

Browse files
committed
Fix bad parameter syntax in example
1 parent 1b4c263 commit 1a6f0db

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

EXAMPLES.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -440,14 +440,10 @@ const Posts = () => {
440440

441441
setPosts(await response.json());
442442

443-
async function fetchWithDpop({
444-
url,
445-
method,
446-
body,
447-
accessToken,
448-
nonce,
449-
isDpopNonceRetry,
450-
}) {
443+
async function fetchWithDpop(params) {
444+
const { url, method, body, accessToken, nonce, isDpopNonceRetry } =
445+
params;
446+
451447
const headers = {
452448
// A DPoP access token has the type `DPoP` and not `Bearer`.
453449
Authorization: `DPoP ${accessToken}`,

0 commit comments

Comments
 (0)