Hi,
I am trying to connect my shop-mini app with a simple hello-world Supabase edge function. I have created 2 new functions → auth and hello-world. And I am trying to make an API call from my shop-mini app to those functions. However I am facing the below 2 issues:
-
If I am connected to my Wi-Fi router, the API call always gives me Timeout error and the token is never generated by the useGenerateUserToken.
-
If I connect my mobile hotspot, it sometimes works and sometimes doesn’t.
If I test my edge functions using postman or curl then they work fine. I think I might have not setup the auth function properly. Can someone provide me an example of a basic shop-mini app with auth functionality, I am referring to shop-minis/supabase at main · Shopify/shop-minis · GitHub docs but it is quite high level and I think I might be missing something here.