I am developing a Thank you page extension that calls my backend API to retrieve some data from my DB. It is a custom app for one store. Still in development and not published the app yet.
I am not able to get the session token in the extension to be passed to the backend API to authenticate the request.
The sessionToken in api object is empty. useSessionToken is returning error.
Shopify AI assistant says I dont need to set the token in header as shopify will automatically inject it but it is not getting set at all in the request header.
I could not find any documentation about the limitation for Thank you page extension (Checkout UI extension) in getting session token to pass to backend API.
Any advice or suggestions pls?