Im having problem with the proxy signature verification

I fallow the steps on this link:

https://shopify.dev/tutorials/display-data-on-an-online-store-with-an-application-proxy-app-extension

And i endUp with this test code on node js with express to validate the signature:

const SHARED_SECRET = '

when i check the data on console, they are diferent:

```javascript
console.log("query:",req.query.signature)
    console.log("hash: ",calculated_signature)

Example of log:
query: 0e22cdb17c43a38d6f7254c77eef1e7e9ef50294fc1f096eab096d09f476581a
hash: f1611e5f5b19fade24a12ec7443105a1cda29cc39977c20cf69e4bd1db1dabc3

Can some one tell me what Am I doing wrong?

I would appreciate any help :disappointed_face:

1 Like

guys I was actually able to solve the issue.

The problem wass that i was using this to make the signature:

const sorted_params = "extra=1,2path_prefix="+req.query.path_prefix+"shop="+req.query.shop+"timestamp="+req.query.timestamp

But I wass receiving this:

Query: {
shop: β€˜multimaxtest2.myshopify.com’,
path_prefix: β€˜/apps/test’,
timestamp: β€˜1609029203’,
signature: β€˜************************’
}

As you can see the extra=1,2 paragram is not send by the request, So I only changed sorted_params value to this:

const sorted_params = "path_prefix="+req.query.path_prefix+"shop="+req.query.shop+"timestamp="+req.query.timestamp

And it start working.

1 Like