How to link oauth token to a identifier after app install

How to link oauth token to a identifier after app install

luthfimusafa
Visitor
3 0 0

Hi everyone, im trying to link a token to a specific data after app install is successful,

 

i have created 2 endpoint called /install and /callback, the install endpoint supposed to return and redirect to this url

 

https://${shop}/admin/oauth/authorize?client_id=${apiKey}&scope=${scope}&state=${state}&redirect_uri=${callback}
 
while the callback url supposed to maintain the post-install after i have achieved the store token
 
someone in this forum said that i can put the identifier inside `state` param during the install endpoint, this mean user can install the app through my platform ( cmiiw ) but this method will make the store url unknown, and shopify does not allow manually type store url.
 
the same problem goes if user install my app throught the shopify app store, this will make the identifier unknown since the user is not in my platform, is there any solution for this ?
Replies 0 (0)