Im new to shopify and Im working on submitting a app to shopify partner.
My regular flow is I call an oauth/authorize link with client id and scope and a redirect url which takes me to shopify store login.
Case 1: When not logged in, the redirect doesnt work with an error “Oauth error invalid_request: The redirect_uri is missing”
Case 2: When logged in, the redirect would go to the app install page, when installed goes to the redirect uri with the authorization code. The code is used on the backend to get the token and later save the shopify data.
But Im still getting error while submitting the app to a live store on the “Immediately redirects to app UI after authentication.”
What needs to exactly happen in this case?
Hi @saurya_paudel
Could you share how the `redirect_urls` are configured in the `shopify.app.toml` file?
redirect_urls consists of these three parts:
redirect_uri: `${config.hostScheme}://${config.hostName}${callbackPath}`,
Thank you for the reply.
redirect_urls = [
“https://p2fjg1ll-30.inc1.devtunnels.ms/”,
“https://p2fjg1ll-30.inc1.devtunnels.ms/brand/dashboard/products”\]
currently this is how Im adding redirect urls on the `shopify.app.toml`. Initially I created the app from the Shopify dev dashboard and later imported it to the CLI and updated from there.
This is my configuration; you can use it as a reference.
Whenever you modify the value of the redirect_urls, you need to run `npm run deploy`.
Just one more question: Which template are you using—Express or Remix?