var app = angular.module('meanmap', ['ngRoute','ngMessages','angularMoment','ngFileUpload','leaflet-directive','ui.bootstrap','appRoutes','ngSanitize','toastr','geocoder','ngLodash'])
  .factory('authInterceptor', function($q, $location, $window){
    return {
      request: function(config){
        config.headers = config.headers || {};

        if($window.sessionStorage["token"]){
          config.headers.token = $window.sessionStorage["token"];
        }
        return config;
      },

      responseError: function(response){
        if(response.status == 401){
          $location.path('/auth/login');
        }
        return $q.reject(response);
      }
     };
  })
  .config(function($httpProvider){
    $httpProvider.interceptors.push('authInterceptor');
  })
  .run(['$rootScope', '$location', function($rootScope, $location) {
    $rootScope.$on( "$routeChangeStart", function(event, next, current) {
      if($rootScope.currentUser === undefined  && next.requireAuth) {
        $location.path( "/" );
      }
    });
  }]);
@@ -41,16 +41,28 @@
 Route','
+ngStorage','
 ngMessag

Add ngStorage dependency