Shopify / ui-extensions

MIT License
267 stars 35 forks source link

[POS]: `session.getSessionToken` returns `null` on some devices (iPad) #2408

Open faouzioudouh opened 1 week ago

faouzioudouh commented 1 week ago

Please list the package(s) involved in the issue, and include the version you are using

Describe the bug

The merchant has 5 locations, and the session.getSessionToken() method works correctly at 3 locations. However, at the other 2 locations, it consistently returns null.

      const token = await session.getSessionToken();

      const response = await fetch(urlString, {
          headers: { Authorization: `Bearer ${token}` },
      });

Interestingly, when accessing the 2 problematic locations on a different device, everything works as expected, suggesting the issue may be device-specific.

What we have tried:

Questions:

adearriba-fik commented 17 hours ago

Same issue on my end