This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
oauth_token
is a required parameter for the access_token endpoint
#78
Labels
bug
Something isn't working
Describe the bug
There's a bug in what the
basics.oauthAccessToken(...)
method accepts in its parameters object.Right now, it only accepts the an object containing the field
oauth_verifier
.However, in order to successfully to return a valid access token, both the
oauth_verifier
andoauth_token
(where the request token is the value foroauth_token
) need to be passed. Per the docs below, theaccess_token
endpoint requires both parameters https://developer.twitter.com/en/docs/authentication/api-reference/access_tokenTo reproduce
Steps to reproduce the behavior:
Here's the workflow I'm doing to reproduce the error
This request fails with
and there's no straightforward way to pass the request token into the call, except by annotating the
basics.oauthAccessToken(...)
call like thisExpected behavior
This should succeed and return the user information
Package Manager:
To install Twitter API Client, I used npm
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: