generators/app/templates/client/app/components/auth(auth)/authinterceptor.service.js
function request(config) {
      config.headers = config.headers || {};
      if ($cookieStore.get('token')) {
        config.headers.Authorization = 'Bearer ' + $cookieStore.get('token');
      }
      return config;
    }
function request(config) {
      config.headers = config.headers || {};
      if ($cookieStore.get('token')) {
        config.headers.Authorization = 'Bearer ' + $cookieStore.get('token');
      }
      return config;
    }
function request ( config ) { config . headers = config . headers || { } ; if ( $cookieStore . get ( 'token' ) ) { config . headers . Authorization = 'Bearer ' + $cookieStore . get ( 'token' ) ; } return config ; }
Add authorization token to headers
Add authorization token to headers