install app on a development store, Missing authorization_code passed in the confirmation redirect

install app on a development store, Missing authorization_code passed in the confirmation redirect

susu2023
Shopify Partner
1 0 0

When we clicks the "install app" install button on the development store, they're redirected to our app's server. The authorization_code is missing form passed in the redirect.

Without authorization_code we can’t exchange the authorization code from the confirmation redirect for an access token.so I don't know how I can do that.

Thank you for helping me

微信截图_20230828141827.png

Reply 1 (1)

Hyildirimkm
Shopify Partner
6 0 1

Hi;

You have to do this request to get "code":

 

https://{shop}.myshopify.com/admin/oauth/authorize?client_id={client_id}&scope={scopes}&redirect_uri...

 

When a user installs your app, first request is not include code. You have to build and redirect to this url to get code.