ciaranj / node-oauth

OAuth wrapper for node.js
MIT License
2.44k stars 660 forks source link

Login with twitter id:pass #359

Closed canyesilyurt closed 1 year ago

canyesilyurt commented 2 years ago

Hello, I couldn't understand much when I studied the document because I'm just starting to learn Nodejs. I can get tokens in php with twitter username and password, can you teach me how to get it in nodejs? If you wish, I can send you the example I made in php.

my Twitter oauth.php:

$to = new TwitterOAuth('3rJOl1ODzm9yZy63FACdg','5jPoQ5kQvMJFDYRNE8bQ4rHuds4xJqhvgNJM4awaE8');
$connectApi = $to->getXAuthToken($username, $password);

I want twitter username and password from user I run these with the twitteroauth library and I save the access token key and access token screet

Twitter Oauth File FULL Code = https://paste.ofcode.org/u7qSgcZP4U7fTzEfdUyi7E

Transactions are triggered by the getXAuthToken function. Thank you, best regards <3