Trouble finishing Post-purchase tutorial

Solved
cosoare
New Member
2 1 0

Hello,

I'm fairly new to Shopify app development and just going through the tutorials to get a feel for it.

I'm currently stuck at the post-purchase tutorial, where I'm having trouble setting the 'X-Shopify-Access-Token: YOUR_ACCESS_TOKEN' - I figured this must be the OAuth Access Token, and thought I should be able to get it when doing the app install via the local ngrok link generated when running `shopify node serve` ie: https://e9ff-82-5-46-26.ngrok.io/auth?shop=email-kong-dev.myshopify.com - however I am not seeing the usual oauth url format which should look like `https://{shop}.myshopify.com/admin/oauth/authorize?client_id={api_key}&scope={scopes}&redirect_uri={...

Any pointers on how to best generate the access token for testing purposes would be much appreciated!

0 Likes
cosoare
New Member
2 1 0

This is an accepted solution.

Answering my own question but hadn't realised the tutorial app already implements OAuth - the following blog post helped!

 

https://yupingohanga.medium.com/the-quickest-way-to-get-the-shopify-permanent-access-token-c89252385...

0 Likes