A React Twitter oAUth Sign-in / Log-in Component for React
npm install react-twitter-auth
<TwitterLogin loginUrl="http://localhost:4000/api/v1/auth/twitter"
onFailure={this.onFailed} onSuccess={this.onSuccess}
requestTokenUrl="http://localhost:4000/api/v1/auth/twitter/reverse"/>
tag
- tag that should be used to create element that will be used as loging elementtext
- text that will be shown in componentloginUrl
- URL that will be used to finish 3rd step of processrequestTokenUrl
- URL that will be used to get request tokenonFailure
- function that will be called if user cannot be authenticatedonSuccess
- function that will be called if user is successfully authenticateddisabled
- disable componentstyle
- style objectclassName
- class name for componentdialogWidth
- dialog widthdialogHeight
- dialog height
Full example can be found in example folder.
react-twitter-auth is released under MIT License.