ARTICLE AD BOX
I have a custom Shopify app that installs correctly via the shop domain. The OAuth flow works as expected: the merchant enters shop domain in form in my app, then redirected to Shopify for approval, then back to my app URL where I exchange the code for an access token and complete installation. After that, redirects to the app preview page on shopify iframe app view.
The problem happens when the app is uninstalled and then reinstalled from Apps > Uninstalled. In this case, Shopify does not redirect to my app URL again, and no code parameter is provided, so I cannot regenerate an access token.
Questions:
How should access tokens be regenerated when an app is reinstalled from the Uninstalled tab?
Alternatively, is there a way to prevent the app from being reinstallable from the Uninstalled list and require installation only via the app URL? (like the Shopify GraphiQL App)

Any guidance or best practices would be appreciated. Thanks!
