redux-csrf
Keep your csrf token inside your Redux store.
Installation
$ npm install redux-csrf --save
Usage
; // Server side with csurf middlewarestore; // Reducer;
API
setCsrfToken(token)
Set CSRF token to redux store.
Test
$ npm run lint
$ npm run test:watch
CONTRIBUTING
- ⇄ Pull requests and ★ Stars are always welcome.
- For bugs and feature requests, please create an issue.
- Pull requests must be accompanied by passing automated tests (
$ npm test
).