cape-redux-auth
v4.0.0
Published
A redux reducer for some authentication state.
Downloads
7
Readme
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.