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

Commit

Permalink
Added documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
byrichardpowell committed Aug 24, 2023
1 parent 54d862d commit c869900
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/reference/utils/validateHmac.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,20 @@ Shopify requests include an `hmac` query argument (or, in the case of app proxy

## Example

For OAuth requests:

```ts
const isValid = await shopify.utils.validateHmac(req.query);
```

For App Proxy requests:

```ts
const isValid = await shopify.utils.validateHmac(req.query, {
signator: 'appProxy',
});
```

## Parameters

### query
Expand Down

0 comments on commit c869900

Please sign in to comment.