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

Function to authenticate flow requests #987

Merged
merged 6 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use the correct hmac header
  • Loading branch information
byrichardpowell authored and paulomarg committed Jan 30, 2024
commit fc67b1b84b749c95eeaf7ca97f8bd82efcf91bc9
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
Loading