1.0.6 • Published 7 years ago

auth-redux v1.0.6

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

auth-redux

React-Redux Auth

Authentication and authorization for react, redux and react-router 4.x

Installation

npm install auth-redux / yarn install auth-redux

Style

import 'auth-redux/build/index.css'

Use view:

import { Login, Register, ForgotPassword, ConfirmPassword } from 'auth-redux'

Use action:

import { actLogin, actRegister, actPasswordForgot, actConfirmPassword, actLogOut, 
        actGetUser }  from 'auth-redux'

Use reducer:

import {login, users, register, passwordForgot, confirmPassword} from 'auth-redux'

Required:

module.exports = {
    authConfig: {
        logo: Logo, //Project logo
        name: 'LVS', //Project name 
        width: 150 //Logo width
    }
} 

<Route path={path} render={()=>{return <Component {...authConfig} />}}  />
<Route path={path} component={Component} {...authConfig}  />

Callback API Path

/api/auth/login/
/api/auth/logout/
/api/auth/register/
/api/auth/user/
/api/auth/password/reset/
/api/auth/password/reset/confirm/
1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.0

7 years ago