All Projects → GenFirst → react-twitter-auth

GenFirst / react-twitter-auth

Licence: MIT License
A React Twitter Login Component

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to react-twitter-auth

TwitterApiKit
Twitter's API v2 Objectified. This will save you time from creating data objects to access twitter's API v2. This library is supported on Gradle, Maven, Java, Kotlin, and Android projects.
Stars: ✭ 23 (-73.56%)
Mutual labels:  twitter
node-facebook-twitter-google-github-login
Node, Express, Mongoose, Passport, Facebook, Twitter, Google and Github Authentication (Login)
Stars: ✭ 31 (-64.37%)
Mutual labels:  twitter
twinetverse
💫 Easily install and load packages for Twitter network analysis and visualisation
Stars: ✭ 19 (-78.16%)
Mutual labels:  twitter
vim-twitter
Tweet from inside vim!
Stars: ✭ 26 (-70.11%)
Mutual labels:  twitter
sentiment-thermometer
Measure the sentiment towards a word, name or sentence on social networks
Stars: ✭ 56 (-35.63%)
Mutual labels:  twitter
twitter-analytics-wrapper
A simple Python wrapper to download tweets data from the Twitter Analytics platform. Particularly interesting for the impressions metrics that are unavailable on current Twitter API. Also works for the videos data.
Stars: ✭ 44 (-49.43%)
Mutual labels:  twitter
ember-meta
Setup meta for your Prember/Ember blog to support opengraph, microdata, Facebook, Twitter, Slack etc.
Stars: ✭ 15 (-82.76%)
Mutual labels:  twitter
passport-examples
A variety of examples using PassportJS with ExpressJS and ReactJS applications
Stars: ✭ 44 (-49.43%)
Mutual labels:  twitter
weatherBot
⛈ A Twitter bot for weather
Stars: ✭ 20 (-77.01%)
Mutual labels:  twitter
markdown-tweet-scheduler
Schedule daily tweets from markdown files in your repo, posted via github actions.
Stars: ✭ 49 (-43.68%)
Mutual labels:  twitter
TwitterPiBot
A Python based bot for Raspberry Pi that grabs tweets with a specific hashtag and reads them out loud.
Stars: ✭ 85 (-2.3%)
Mutual labels:  twitter
Twitter
A Twitter handle parser for Laravel 5.
Stars: ✭ 12 (-86.21%)
Mutual labels:  twitter
obsidian-tweet-to-markdown
An Obsidian.md plugin to save tweets as Markdown files.
Stars: ✭ 35 (-59.77%)
Mutual labels:  twitter
social-button
Social Buttons as Web Components
Stars: ✭ 17 (-80.46%)
Mutual labels:  twitter
tweet.md
Render tweet into beautiful markdown
Stars: ✭ 15 (-82.76%)
Mutual labels:  twitter
alternative-front-ends
Overview of alternative open source front-ends for popular internet platforms (e.g. YouTube, Twitter, etc.)
Stars: ✭ 1,664 (+1812.64%)
Mutual labels:  twitter
TwEater
A Python Bot for Scraping Conversations from Twitter
Stars: ✭ 16 (-81.61%)
Mutual labels:  twitter
SocMap
Social Mapping Framework for Twitter
Stars: ✭ 16 (-81.61%)
Mutual labels:  twitter
oauth
Allow users to log in with GitHub, Twitter, Facebook, and more!
Stars: ✭ 21 (-75.86%)
Mutual labels:  twitter
avatars-io
👤 Wanna get a social media avatar? Avatars-io makes it easy for you. Just give a username then get an avatar!
Stars: ✭ 13 (-85.06%)
Mutual labels:  twitter

NPM

npm Build Status Code Climate Coverage Status npm version License

React Twitter Authentication Component

A React Twitter oAUth Sign-in / Log-in Component for React

Installation

npm install react-twitter-auth

Usage

<TwitterLogin
  loginUrl="http://localhost:4000/api/v1/auth/twitter"
  onFailure={this.onFailed}
  onSuccess={this.onSuccess}
  requestTokenUrl="http://localhost:4000/api/v1/auth/twitter/reverse"
/>

Custom content that overrides default content:

<TwitterLogin
  loginUrl="http://localhost:4000/api/v1/auth/twitter"
  onFailure={this.onFailed}
  onSuccess={this.onSuccess}
  requestTokenUrl="http://localhost:4000/api/v1/auth/twitter/reverse"
  showIcon={true}
  customHeaders={customHeader}
>
  <b>Custom</b> Twitter <i>Login</i> content
</TwitterLogin>

Options

params value default value description
tag string button tag that should be used to create element that will be used as loging element
text string Sign in with Twitter text that will be shown in component
loginUrl string URL that will be used to finish 3rd step of authentication process
requestTokenUrl string URL that will be used to get request token
onFailure function function that will be called if user cannot be authenticated
onSuccess function function that will be called if user is successfully authenticated
disabled boolean false disable component
style object style object
className string class name for component
dialogWidth number 600 dialog width
dialogHeight number 400 dialog height
showIcon bool true should default icon be visible
credentials string same-origin indicates whether the user agent should send cookies from the other domain in the case of cross-origin requests. Possible values: omit, same-origin, include
customHeaders object {} custom headers should be object with fields that needs to be sent to user server. Field name will be used as header key and field value as header value. Because of bug in fetch implementation all keys will be lowercase.
children node this props can be used in order to override default component content
forceLogin bool false force user to authenticate with Twitter username and password
screenName string prefills the username input box of the OAuth login screen with the given value

Examples

Full example can be found in example folder.

You can find tutorial that explains in details how to implement Twitter authentication with RESTful backend here.

Workflow

The detailed explanation of the whole process can be found in Twitter documentation. In picture below you can find out all the steps that are needed.

Twitter authentication workflow

License

react-twitter-auth is released under MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].