text: import { authentication } from '../_services/authentication';
  
  export function authHeader() {
      // return authorization header with jwt token
      const currentUser = authentication.currentUserValue;
      if (currentUser && currentUser.id_token) {
          return { Authorization: `Bearer ${currentUser.id_token}` };
      } else {
          return {};
      }
  }