From 2262e0ae495ad4a04418a014fda882f868aa15a7 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Tue, 5 Jun 2018 07:47:30 +0200 Subject: [PATCH] Cleanup unneeded login config. --- 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']); -};