How to distributing my app for the single-merchant?

I have distributing my app for a single merchant by single-merchant install link. When I install my app something went wrong.

Error: Oauth error invalid_request: The redirect_uri is not whitelisted.

I deployed the app at fly.io and set up dashboard.

Hi Laoyingpeng,

This error typically arises when the redirect_uri you provided during the OAuth process does not match the one you set in the Whitelisted redirection URLs section of your app’s settings in the Shopify Partner dashboard.

Here are the steps you can follow to fix this issue:

  1. Open your Shopify Partner Dashboard and navigate to the Apps section.

  2. Select the app you’re having trouble with.

  3. Click on “App Setup” on the left-hand side.

  4. Under the App URLs section, there’s a field named “Whitelisted redirection URL(s)”. Make sure that the redirect_uri you’re providing during the OAuth process is listed here.

For example, if your OAuth process redirects to [https://yourapp.fly.dev/auth/callback](https://yourapp.fly.dev/auth/callback), then this exact URL should be listed in the “Whitelisted redirection URL(s)” field.

  1. Make sure to click “Save” at the bottom of the page to save any changes.

  2. Lastly, in your app’s code, make sure that the redirect_uri parameter in the OAuth process exactly matches the URL you’ve added in the Shopify Partner dashboard.

If you’ve ensured all the above and are still facing the issue, double-check your OAuth implementation to make sure there aren’t any errors, and ensure that the redirect_uri in the code is correctly pointing to the callback URL that handles the OAuth process.

Hope this helps!

Here is my settings. What’s wrong with my settings? It still went wrong.