text: import React from "react";
  import axios from "axios";
  import { getSessionToken } from "@shopify/app-bridge-utils";
  import {  useAppBridge } from "@shopify/app-bridge-react";
  import createApp from "@shopify/app-bridge";
  
  const instance = axios.create();
  // Intercept all requests on this Axios instance
  
  
  
  instance.interceptors.request.use(function (config) {
      const app = createApp({
          apiKey: config.apiKey,
          host: config.host
      })
      return getSessionToken(app) // requires a Shopify App Bridge instance
          .then((token) => {
              // Append your request headers with an authenticated token
              config.headers["Authorization"] = `Bearer ${token}`;
  
              return config;
          });
  });
  // Export your Axios instance to use within your app
  export default instance;
  