How to get the current session object for Admin API calls outside routes?

I’m also new to Shopify, and so far it’s been absolutely impossible for me to find an answer to this simple question, although I’m happy to see that I’m not alone. The “shopify-api-js” docs (on Github) is not particularly clear on the subject. I found however that I can do what I want with only an access token, using the “shopify-api-node” library.

2 Likes