@@ -57,9 +57,9 @@ This authentification method requires to use a couple of 4 keys, 2 are your app
5757``` ts
5858const client = new TwitterApi ({
5959 appKey: ' <YOUR-TWITTER-APP-TOKEN>' ,
60- appSecret: ' <YOUR-TWITTER-APP-SECERT >' ,
61- accessToken: ' <YOUR-TWITTER-ACCESS-TOKEN >' ,
62- accessSecret: ' <YOUR-TWITTER-ACCESS-SECERT >' ,
60+ appSecret: ' <YOUR-TWITTER-APP-SECRET >' ,
61+ accessToken: ' <YOUR-TWITTER-ACCESS-SECRET >' ,
62+ accessSecret: ' <YOUR-TWITTER-ACCESS-SECRET >' ,
6363});
6464// NOTE: accessToken and accessSecret are not required if you want to generate OAuth login links.
6565```
@@ -282,7 +282,7 @@ See also [authentication documentation](./auth.md) for examples and explaination
282282
283283``` ts
284284// Create a partial client for auth links
285- const client = new TwitterApi ({ appKey: ' <YOUR-TWITTER-APP-TOKEN>' , appSecret: ' <YOUR-TWITTER-APP-SECERT >' });
285+ const client = new TwitterApi ({ appKey: ' <YOUR-TWITTER-APP-TOKEN>' , appSecret: ' <YOUR-TWITTER-APP-SECRET >' });
286286const authLink = await client .generateAuthLink (' oob' );
287287// Redirect your client to authLink.url
288288console .log (' Please go to' , authLink .url );
@@ -291,7 +291,7 @@ console.log('Please go to', authLink.url);
291291// Create a temporary client with previous-step tokens
292292const connecterClient = new TwitterApi ({
293293 appKey: ' <YOUR-TWITTER-APP-TOKEN>' ,
294- appSecret: ' <YOUR-TWITTER-APP-SECERT >' ,
294+ appSecret: ' <YOUR-TWITTER-APP-SECRET >' ,
295295 accessToken: authLink .oauth_token ,
296296 accessSecret: authLink .oauth_token_secret ,
297297});
0 commit comments