Skip to content

Commit 8fe1a58

Browse files
authored
Cleaning non-used auth code from index.js
1 parent bc0d204 commit 8fe1a58

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

client/src/index.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ import jwt from 'jsonwebtoken';
1717
import registerServiceWorker from './registerServiceWorker';
1818
// Root reducer to use in Redux Store
1919
import rootReducer from './reducers/rootReducer';
20-
// Actions
21-
//import { setCurrentUser } from './actions/authActions';
2220
// The application, high order component
2321
import App from './components/App';
2422
// Application routes as external component
@@ -37,12 +35,6 @@ const store = createStore(
3735
)
3836
);
3937

40-
// Verify if token exists and set it to request headers
41-
// if (localStorage.jwtToken) {
42-
// setAuthorizationToken(localStorage.jwtToken);
43-
// store.dispatch(setCurrentUser(jwt.decode(localStorage.jwtToken)));
44-
// }
45-
4638
ReactDOM.render(
4739
<Provider store={store}>
4840
<Router history={history}>

0 commit comments

Comments
 (0)