custom_header: async()

in marketplace/src/main.ts [16:24]


        custom_header: async () => {
          const currentSession = await Auth.currentSession();
          if (currentSession) {
            return {
              Authorization: `Bearer ${currentSession.getIdToken().getJwtToken()}`,
            };
          }
          return {};
        },