custom_header: async()

in source/frontend/src/index.tsx [42:53]


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