You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526
  1. (function () {
  2. 'use strict';
  3. angular.module('luticate')
  4. .factory('ServiceCache', ['localStorageService', function (localStorageService) {
  5. var ServiceCache = {};
  6. ServiceCache.setToken = function(token)
  7. {
  8. localStorageService.set('lu_token', token);
  9. };
  10. ServiceCache.getToken = function()
  11. {
  12. return localStorageService.get('lu_token');
  13. };
  14. ServiceCache.removeToken = function()
  15. {
  16. localStorageService.remove('lu_token');
  17. };
  18. return ServiceCache;
  19. }]);
  20. })();