cape-redux-auth

4.0.0 • Public • Published

cape-redux-auth v2.1.0

An example redux reducer for handling some authentication state.

Actions

  • login(user) Saves user object to auth.
  • loginRedirect(user, location) thunk action allow logging in and redirect using redux-history-sync.

Selectors

  • selectUser() Returns auth.user or graph.entity[selectUse().uid] if user in state is an object with a single id prop.

Readme

Keywords

none

Package Sidebar

Install

npm i cape-redux-auth

Weekly Downloads

2

Version

4.0.0

License

ISC

Last publish

Collaborators

  • kaicurry