Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Use the correct hmac header
Browse files Browse the repository at this point in the history
  • Loading branch information
byrichardpowell authored and paulomarg committed Jan 30, 2024
1 parent c6c4237 commit fc67b1b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 106 deletions.
11 changes: 0 additions & 11 deletions lib/flow/index.ts

This file was deleted.

20 changes: 0 additions & 20 deletions lib/flow/types.ts

This file was deleted.

74 changes: 0 additions & 74 deletions lib/flow/validate.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/shopify-api/lib/flow/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function validateFactory(config: ConfigInterface) {
fail(FlowValidationErrorReason.MissingBody, config);
}

const hmac = getHeader(request.headers, 'hmac');
const hmac = getHeader(request.headers, 'x-shopify-hmac-sha256');

if (!hmac) {
return fail(FlowValidationErrorReason.MissingHmac, config);
Expand Down

0 comments on commit fc67b1b

Please sign in to comment.