@autodisol/client

import { createStore, combineReducers, applyMiddleware } from 'redux' import thunk from 'redux-thunk' import authReducer, { authenticate, disconnect } from '@autodisol/client/auth'

Usage no npm install needed!

<script type="module">
  import autodisolClient from 'https://cdn.skypack.dev/@autodisol/client';
</script>

README

@autodisol/client

npm

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())