react-redux-oauth2
Redux OAuth Component, server rendering supported
Reducer
;
Usage
Component { const dispatch = thisprops } async { const dispatch = thisprops e await } { const oauth = thisprops const Signin = <button ...props /> const Signout = <button ...props /> return <div> <form onSubmit=thishandleSignin> <input type='text' name='username' ref='username' placeholder='username' /> <input type='text' name='password' ref='password' placeholder='password' /> <button type='submit' disabled=oauthauthenticating>Signin</button> </form> <hr /> <Signin provider='github'>Signin</Signin> <hr /> <Signout>Signout</Signout> </div> }
For a full runable example see ./demo/src
Run Demo & debug locally
npm start
http://localhost:3000 for debug