php - Does shopify provide access tokens for unpublished apps?
So, I made a shopify app from my developers account (linked to the code running in my localhost.) and installed it on my development store(via link generated by code on my localhost). Everything seems to be working (The sha-256 hash-check is successful.) except after I make a post request to the
admin/oauth/access_token page; it is sending back an empty result instead of a json string with access token in it. Is it because I am asking access token for an unpublished app? Thanks in advance!
When someone installs your app you receive a temporary access token that you can exchange for a permanent token by sending over your public api key, private api key, and the temporary token they give you and you should receive back a response with a permanent access_token. Im doing the exact same thing with a private unpublished app and it works so you should be good you might just be doing something wrong.
The published state of an App has nothing to do with tokens. Your oAuth code is responsible for all problems with correctly receiving a token.
Didn't find the answer?
Our community is visited by hundreds of Shopify development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.