Having trouble with OAuth2.0 User Context #144
Answered
by
alkihis
karakotineeraj
asked this question in
Q&A
-
Can you tell me how I can create a client after I have its accessToken and refreshToken in OAuth2.0 ? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
alkihis
Jan 4, 2022
Replies: 1 comment 2 replies
-
Hi, An access token, in OAuth 2.0 content, is a Bearer token. Just instanciate the class with it. const client = new TwitterApi('accessToken') If you want to use your refresh token, instanciate a client with your access token then use |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
karakotineeraj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
An access token, in OAuth 2.0 content, is a Bearer token. Just instanciate the class with it.
If you want to use your refresh token, instanciate a client with your access token then use
.refreshOAuth2Token
(see here)