Timeout error when trying to generate token using useGenerateUserToken

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:

  1. 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.

  2. 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.

hi @Dhaval_Dave!

Are you still facing issues?

Yes @Quique-Shopify I am still facing this issue, for some reason if I run the app from my Wi-Fi router then it always gives me the Timeout error. I am currently using my mobile hotspot to work on the app. Is there something that I can troubleshoot on my laptop to see what configuration restricts the app request to generate token? Basically it the request to “server.shop.app” which shows this error

It looks like a network issue with your ISP. We haven’t heard about similar issues.