Checkout Extension Session Token Not Found

Checkout Extension Session Token Not Found

flitsharsh
Shopify Partner
4 0 0

When we are calling get method from useSessionToken hook from local environment it gives error

Uncaught (in promise) SessionTokenApiError: Error fetching session token.
    at get (app.latest.en.52dc807c53953e57fa81.js:1:881616)
    at async Object.call (358.latest.en.260aa393b480d8eed634.js:2:31920)
    at async MessagePort.b (358.latest.en.260aa393b480d8eed634.js:2:34471)

But it work fine when we deploy this code

I am using 2024-07 version of api and shopify packages and refering 

https://shopify.dev/docs/api/checkout-ui-extensions/2024-07/apis/session-token

Is there any solution for getting session token from local environmnt ?

Replies 0 (0)