Session/Access token in "App Extension Block" always in a pending state

We are working on creating an app theme extension for an EXISTING application, our app is in development stage so that is not live on the app store, we are creating a block of it by following the guide, since it is a multi-user application, we want to get either the session token or access token or whatever is available to communicate with the server.

This is our code that we got by following the link.

https://shopify.dev/docs/apps/getting-started/create


  
  

{% schema %}
{
  "name": "Wp Widget",
  "target": "section",
  "javascript": "app.js",
  "settings": [
    { "type": "color", "id": "colour", "label": "Star Colour", "default": "#ff0000" }
  ]
}
{% endschema %}

We are not able to get ahead of that pending promsie, I’m not sure what I’m doing here as there is little to no material available to move ahead.

Thank you