Skip to content

Commit c83bb95

Browse files
author
Emmanouil Konstantinidis
committed
Remove authentication middleware
1 parent d6271ae commit c83bb95

File tree

4 files changed

+2
-77
lines changed

4 files changed

+2
-77
lines changed

src/js/__tests__/middleware/authentication.js

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/js/middleware/authentication.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/js/store/configureStore.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { createStore, applyMiddleware } from 'redux';
22
import { apiMiddleware } from 'redux-api-middleware';
3-
import createLogger from 'redux-logger';
43

54
import * as storage from 'redux-storage';
65
import createEngine from 'redux-storage-engine-localstorage';
@@ -16,14 +15,11 @@ export default function configureStore(initialState) {
1615
const engine = filter(createEngine(constants.STORAGE_KEY), ['settings', ['auth', 'token']]);
1716
const storageMiddleware = storage.createMiddleware(engine, [], [UPDATE_SETTING, LOGIN_SUCCESS, LOGOUT]);
1817

19-
const logger = createLogger();
20-
2118
const createStoreWithMiddleware = applyMiddleware(
2219
requests, // Should be passed before 'apiMiddleware'
2320
apiMiddleware,
2421
notifications,
25-
storageMiddleware,
26-
logger
22+
storageMiddleware
2723
)(createStore);
2824

2925
const store = createStoreWithMiddleware(rootReducer, initialState);

src/js/utils/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let constants = {
55
SCOPE: ['user:email', 'notifications'],
66

77
// Storage
8-
STORAGE_KEY: 'settings',
8+
STORAGE_KEY: 'gitify-storage',
99

1010
// Awesome all read messages
1111
ALLREAD_MESSAGES: [

0 commit comments

Comments
 (0)