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