redux-react-session
redux-react-session copied to clipboard
:key: Simple Session API storage for Redux and React
How session validation (`validateSession` in `sessionOptions`) is being triggered? In one example, the `CheckAuth` function is being triggered `onEnter` of a route. https://github.com/bernabe9/redux-react-session/blob/master/src/index.js#L26 This library uses `localforage`. https://github.com/bernabe9/redux-react-session/blob/master/src/index.js#L39-L46 https://github.com/localForage/localForage/blob/master/src/localforage.js#L117-L154 Unfortunately,...
this PR will solve issue number #29 ``` sessionService.initSessionService(store, { driver: 'LOCALSTORAGE', sessionKey: 'your Key', sessionData: 'Your Key' }) ```
index.js
Added a default parameter in saveUser and saveSession method to set the expiry date manually for cookies
Hi Can you add a parameter in saveSession and saveUser Method to set cookie expiry manually instead of assigning at the initial level. Because consider this use-case. In Login form...
Has any one else experienced deleteSession() or deleteUser() not working? Are there any working examples? This is what I'm using but it doesn't affect any cookies, etc sessionService.deleteSession(); sessionService.deleteUser();
Trying out the react-router-v4-example, npm start is failing because of error in ``` npm ERR! [email protected] start: `babel-node tools/server.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at...
When choosing localstorage, it would help if we can use a custom key to store the session instead of the default "USER-SESSION". For example, "[email protected]"
``` error: bundling failed: ReferenceError: [BABEL] .../node_modules/redux-react-session/dist/index.js: Unknown option: .../node_modules/react/index.js.Children. Check out http://babeljs.io/docs/usage/options/ for more information about options. A common cause of this error is the presence of a configuration...
In this file [https://github.com/bernabe9/redux-react-session/blob/master/examples/react-router-v4-example/src/api/sessionApi.js](url) `return new Promise(resolve => setTimeout(resolve(response), 1000));` - without delay If you emulate delay 1 second need wrap resove(response) in function `return new Promise(resolve => setTimeout(() =>...
Bumps [qs](https://github.com/ljharb/qs) from 6.3.2 to 6.3.3. Changelog Sourced from qs's changelog. 6.3.3 [Fix] parse: ignore __proto__ keys (#428) [Fix] fix for an impossible situation: when the formatter is called with...