This error occurs when the redirect_uri during OAuth for your application is not listed in the Allowed redirection URL(s) on the App Setup page for your app in the Partner Dashboard.
If you are using the Shopify CLI, each time you restart the server a new tunnel URL is created, and the redirection URLs in the partner dashboard need to be updated. But the Shopify CLI can do this for you! If you run the command npm run dev -- --reset, you will be able to run through the the set up again for your app. Make sure to select Always by default, for the option: Have Shopify automatically update your app's URL in order to create a preview experience?
Hi @lizk, thank you for replying so fast. Unfortunately it didn't solve the problem. I am using Shopify CLI 3 and I did a `yarn dev --reset`. I selected Always by default, but it still gives that error.