2.0.0 • Published 7 years ago

redux-authentication v2.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

redux-authentication

NPM version build status David deps node version Gittip

authentication component for redux

Install

NPM

Examples

import authentication from 'redux-authentication'
import {connect} from 'react-redux'
import React, { PropTypes } from 'react'
import {goToLogin} from 'your-actions'

@connect(state => ({
  isAuthenticated: state.isAuthenticated
}), {
  goToLogin,//map to props.goToLogin OR props.actions.goToLogin
})
@authentication
class App extends React.Component {
  // will be called until isAuthenticated is updated to true
  render() {
    return (
      <div>
        App
      </div>
    )
  }
}

export default App
2.0.0

7 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago