Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { createStore, applyMiddleware, compose } from 'redux';
import { Provider } from 'react-redux';
import logger from 'redux-logger';
import thunk from 'redux-thunk';
import { createBrowserHistory } from 'history';
const history = createBrowserHistory();
/* eslint-disable no-underscore-dangle */
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(
reducers, composeEnhancers(applyMiddleware(logger, thunk))
);
/* eslint-enable */
const auth = new Auth({
history,
issuer: config.issuer,
client_id: config.client_id,
redirect_uri: config.redirect_uri,
onAuthRequired: ({history}) => history.push('/node-okta-react-redux/login')
});
ReactDOM.render(
,
document.getElementById('root')
import MetaMask from '../MetaMask';
import Register from '../Auth/Register';
import ProfilePage from '../Profile';
import RecoveryPage from '../Profile/RecoveryPage';
import DirectoryPage from '../DirectoryPage';
import DirectoryProfilePage from '../DirectoryPage/DirectoryProfilePage';
import MessagesPage from '../Messages';
import GroupsPage from '../Groups/GroupsPage';
import GroupPage from '../Groups/GroupPage';
import EventStoreFactoryPage from '../EventStoreFactoryPage';
import EventStorePage from '../EventStorePage';
import StreamModelPage from '../StreamModelPage';
import { ToastContainer } from 'react-toastify';
const auth = new Auth({
issuer: config.issuer,
client_id: config.client_id,
redirect_uri: config.redirect_uri,
history
});
class Routes extends React.Component {
render() {
return (