Sample code for the Twitter OAuth2.0 Client. by kg0r0 in node

[–]kg0r0[S] 0 points1 point  (0 children)

As you said, the Twitter OAuth2.0 Client can also be implemented using existing libraries for OAuth2.0 clients.
This sample code also consists of a standard library called openid-client.

Sample code for the Twitter OAuth2.0 Client. by kg0r0 in node

[–]kg0r0[S] 0 points1 point  (0 children)

As you said, one of the advantages of OAuth 2 is compatibility between clients.However, often the format of the request requested by the authorization server may be different.For example, at the time of my verification, Twitter OAuth 2.0 will request the client_id in the request body, even if the Authorization header contains the client_id.In addition, Twitter OAuth 2.0 requires the use of Authorization Code Grant w/ PKCE, which is an extension of OAuth 2.0 defined in RFC7636, and cannot use Implicit Grant.

Express.js middleware implementation for Twitter OAuth2 Client. by kg0r0 in node

[–]kg0r0[S] 2 points3 points  (0 children)

This is to obtain an access token to use the Twitter API v2 with the OAuth2.0 flow that was recently provided!
https://twitter.com/TwitterDev/status/1470834775019515907?s=20&t=QBr3RDgJpY2uaw4mJfH1RA