PLhery / node-twitter-api-v2

Strongly typed, full-featured, light, versatile yet powerful Twitter API v1.1 and v2 client for Node.js.
https://www.npmjs.com/package/twitter-api-v2
Apache License 2.0
1.31k stars 186 forks source link

Missing 'await' in the documentation for Authentication Flow #540

Open harshnambiar opened 4 months ago

harshnambiar commented 4 months ago

In the documentation, in the line: const { accessToken, accessSecret } = connecterClient.login('<THE_OAUTH_VERIFIER>');

an await is missing. I used it as given here and the accessToken ends up being 'undefined'. Adding an await to the right hand side fixed the problem.