{"repo":"unasuke/omniauth-twitter2","free":true,"listed":false,"github":"https://github.com/unasuke/omniauth-twitter2","clone":"git clone https://github.com/unasuke/omniauth-twitter2.git","description":"OmniAuth strategy for authenticating with Twitter OAuth2","language":"Ruby","stars":45,"topics":["ruby","gem","twitter","authentication","omniauth","oauth2"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"OmniAuth::Twitter2 This gem provides a OmniAuth strategy for authenticating with X (formerly known as Twitter) OAuth2. Email Support As of April 2025, X API v2 supports returning the user's email address via the confirmed email field. See the X Developer Community announcement. To request the email, include the users.email scope: Note: The email will only be returned if: 1. Your X app has \"Request email from users\" enabled in the Developer Portal 2. The user has a confirmed email address on their X account 3. The user grants permission during OAuth If these conditions aren't met, email will be nil in the auth hash. Installation Add this line to your application's Gemfile: And then execute: Or install it yourself as: Usage Rails Auth Hash Development After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment. To install this gem onto your local machine, run bundle exec rake install . To release a new version, update the version number in version.rb , and then run bundle exec rake release , which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org. References X official resources xdevplatform/samples: Sample code for the X API v2 endpoints OAuth 2.0 - X arunagw/omniauth-twitter: OmniAuth strategy for Twitter omniauth/omniauth-oauth2: An abstract OAuth2 strategy for OmniAuth. nov/tw","default_branch":null,"files":null,"tree":[],"storefront":"/r/unasuke","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/unasuke/omniauth-twitter2/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}