Skip to content

Commit bae48ec

Browse files
authored
Fix typo (#295)
1 parent 3682193 commit bae48ec

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/examples.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ This authentification method requires to use a couple of 4 keys, 2 are your app
5757
```ts
5858
const 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>' });
286286
const authLink = await client.generateAuthLink('oob');
287287
// Redirect your client to authLink.url
288288
console.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
292292
const 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

Comments
 (0)