4.0.0 • Published 9 years ago
cape-redux-auth v4.0.0
cape-redux-auth v2.1.0
An example redux reducer for handling some authentication state.
Actions
login(user)Saves user object toauth.loginRedirect(user, location)thunk action allow logging in and redirect usingredux-history-sync.
Selectors
selectUser()Returnsauth.userorgraph.entity[selectUse().uid]if user in state is an object with a singleidprop.