{"repo":"kg0r0/twitter-oauth2","free":true,"listed":false,"github":"https://github.com/kg0r0/twitter-oauth2","clone":"git clone https://github.com/kg0r0/twitter-oauth2.git","description":":baby_chick: Express.js middleware implementation for Twitter OAuth2 Client.","language":"TypeScript","stars":25,"topics":["twitter","oauth2","pkce","nodejs","oauth","express","typescript"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"twitter-oauth2 Express.js middleware implementation for Twitter OAuth 2.0 Client. This module supports the following grant type available on twitter: - Authorization Code Grant with PKCE - Client Credentials Grant Table of Contents - Install - Usage - Authorization Code Grant with PKCE - Confidential Client - Public Client - Client Credentials Grant - API - twitterOAuth2(options) - Options - Error Handling - Contributing - License Install Usage Note This module uses a session store that is compatible with express-session. See the example for more details. Authorization Code Grant with PKCE The required arguments depend on the client type. Confidential Client Public Client Client Credentials Grant API twitterOAuth2(options) Create a middleware with the given options . Options twitterOAuth2 accepts these properties in the options object. client id The identifier of the Client. You can check it from the Developer Portal. This option is used in case Authorization Code Grant. This option can also be read from the environment variable CLIENT ID . client secret This is the secret information used for client authentication. You can check it from the Developer Portal. This option is used in the case of Authorization Code Grant and Confidential Client. This option can also be read from the environment variable CLIENT SECRET . redirect uri This is the callback URL that you registered on the Developer Portal. This option can also be read from the environment variable REDIRECT URI . scope","default_branch":null,"files":null,"tree":[],"storefront":"/r/kg0r0","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kg0r0/twitter-oauth2/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."}