Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chronark committed Jul 6, 2022
1 parent 8b8a303 commit 033e242
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ export class Consumer {
"SHA-256",
new TextEncoder().encode(req.body),
);
if (p.body != base64.encode(bodyHash)) {
throw new SignatureError(`body hash does not match, want: ${p.body}, got: ${base64.encode(bodyHash)}`);
if (p.body != base64url.encode(bodyHash)) {
throw new SignatureError(`body hash does not match, want: ${p.body}, got: ${base64url.encode(bodyHash)}`);
}

return true;
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@upstash/qstash": "^0.0.7",
"@upstash/qstash": "^0.0.8",
"micro": "^9.3.4",
"next": "12.1.6",
"react": "18.2.0",
Expand Down
8 changes: 4 additions & 4 deletions examples/nextjs/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 033e242

Please sign in to comment.