1) How do we get X-Shopify-Access-Tokens for Live stores?
The documentation doesn't seem to be very helpful. I have generated X-Shopify-Access-Token for development stores using a public app (draft status). However, I don't know how to generate the token for live stores.
Draft public app needs to be approved before I can use it in a live store. Is there any other method other than a public app?
2) Is there another alternative to X-Shopify-Access-Tokens for authentication?
In other platforms we can generate access token via UI.
Please let me know. Thanks.
I am using the private app.
https://xxxxxxx:xxxxx@xxxxx.myshopify.com/admin/api/2020-07/products.json
The private works when I don't have a request body. However, whenever I insert a request body I get the following back in postman.
Any idea why?
If you use koa-auth-shopify the access token is stored in the session under ctx.session.accessToken
const { shop, accessToken } = ctx.session;
Depending on your mode (online of offline) the token does expire or not.
User | Count |
---|---|
12 | |
12 | |
7 | |
6 | |
5 |