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.user
orgraph.entity[selectUse().uid]
if user in state is an object with a singleid
prop.