How To Access Custom App API From Theme App Extension in Shopify?
<script> tags with your fetch request in it.
By the way, /api/auth is usually used to handle OAuth 2.0 during app installation process, so you won't be able to do anything related to what you want to achieve with it.
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.