So I’ve created a node app using Shopify node create
It is working fine on the Shopify development store but I wanted to access the app locally as well
When I try to access localhost:8081, it redirects me to https://undefined/admin/oauth/authorize?
In other words, I wanted to access the app from the browser, not from the Shopify store.
What is the solution?
TIA
I’m having the same issue @zilehuda
I’m no expert but you may want to start here. All you need, really, is the store’s permanent access_token to make future RESTful requests or GraphQL requests to the endpoint you need. Again I’m no expert but I THINK you have went the “embedded route”.
The app I’m building:
- Customer enters their store’s url/name
- Clicks “Connect with Shopify”
- They install the app (my unlisted app), after redirected to Shopify
- Shopify redirects to your server (or localhost) with an auth code
- You do some checks then use that auth code to get the access token
- You save the access token against the user via the store name in your database.
If the app you are building does not show in the merchant’s admin, then skip the embedded section. Again, I’m no expert here.
Good luck!