1.2.1 • Published 6 years ago
@autodisol/client v1.2.1
@autodisol/client
Authentification
import { createStore, combineReducers, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import authReducer, { authenticate, disconnect } from '@autodisol/client/auth'
const store = createStore(combineReducers({ auth: authReducer }), applyMiddleware(thunk))
store.dispatch(authenticate('username', 'password'))
store.dispatch(disconnect())