{"repo":"na2hiro/remix-auth-twitter","free":true,"listed":false,"github":"https://github.com/na2hiro/remix-auth-twitter","clone":"git clone https://github.com/na2hiro/remix-auth-twitter.git","description":"Remix Auth plugin for Twitter OAuth 2.0 & 1.0a","language":"TypeScript","stars":18,"topics":["authentication","twitter","oauth","twitter-api","typescript","remix","remix-auth","remix-auth-twitter"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Remix Auth Twitter Remix Auth plugin for Twitter OAuth 2.0 and 1.0a. Supported runtimes Runtime Has Support ------------ ----------- Node.js ✅ Cloudflare ✅ Example See example repo for remix-auth-twitter v3 Installation Install remix-auth-twitter npm module along with remix-auth : Compatibility remix-auth-twitter remix-auth other notes ------------------ ---------- --------------------- @2 @3 Points to twitter.com @3 @3 Points to x.com @4 @4 Points to x.com How to use Prerequisites - Your app is registered to Twitter and you have client ID and secret (OAuth 2.0) or consumer key and secret (OAuth 1.0a) - Your app has remix-auth set up and authenticator is provided: Tell the Authenticator to use the Twitter strategy (OAuth 2.0) Note that profile is not passed to the verify function as it was done for 1.0a. You need to manually hit /2/users/me for example in order to retrieve user's id, screen name, etc. The example uses twitter-api-v2 to do so. Tell the Authenticator to use the Twitter strategy (OAuth 1.0a) Set up login/logout flow Follow the remix-auth docs. The log in flow would look like this: 1. User comes to \"login\" page (e.g. /login ). 2. The app will redirect user to Twitter's auth page. 3. Once user finishes auth, Twitter will redirect user back to your app (e.g. /login/callback ). 4. The app will verify the user and return a user object 5. Save the user object to sessionStorage and redirect user Note: Storing the user object in session storage and handling redirection ","default_branch":null,"files":null,"tree":[],"storefront":"/r/na2hiro","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/na2hiro/remix-auth-twitter/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."}