Shopify / shopify-app-template-php

263 stars 85 forks source link

HMAC comparison error #476

Closed GaoBlues2 closed 9 months ago

GaoBlues2 commented 9 months ago

I just deployed an app to the production environment. When I tried installing it with my test shop, it always reported the error production.ERROR: Invalid OAuth callback.

I checked and discovered the reason is that the process of creating the HMAC string produces results that are not the same as the URL parameters.

In my local environment, it works very normally. I really don't understand the reason, I copied API_SECRET_KEY from the Shopify app dashboard in the Client credentials overview section, and all parameters in the cookie request seem correct.