From 49482eab9f5253c5edd2e900e8f25d2aab03d3b5 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Wed, 30 Aug 2017 23:44:43 +0200 Subject: [PATCH] Remove unused old login.config module. --- src/login/login.config.ts | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/login/login.config.ts diff --git a/src/login/login.config.ts b/src/login/login.config.ts deleted file mode 100644 index d7cf68c..0000000 --- a/src/login/login.config.ts +++ /dev/null @@ -1,31 +0,0 @@ -module.exports = function($httpProvider, $storageProvider) { - // Define interceptors. - $httpProvider.interceptors.push(function($storage) { - return { - request: function(config) { - var access_token = $storage.session.get('access_token'); - - if (access_token) { - //var tokenType = $storage.get('token_type'); - var tokenType = 'Bearer'; - var authorization = tokenType + ' ' + access_token; - config.headers.authorization = authorization; - } - - return config; - }, - }; - }); - - // Configure storage - // Set global prefix for stored keys - $storageProvider.setPrefix('accountant'); - - // Change the default storage engine - // Defaults to 'local' - $storageProvider.setDefaultStorageEngine('session'); - - // Change the enabled storage engines - // Defaults to ['memory', 'cookie', 'session', 'local'] - $storageProvider.setEnabledStorageEngines(['local', 'session']); -};