Using OAuth 2.0 as authorization to log in.
imentoyt opened this issue · 0 comments
imentoyt commented
Description:
Hello, in my application I can only get access tokens (OAuth 2.0), when I set accessToken without apiKey it says that apiKey is required.
Ideal solution:
An option to set the authorization as OAuth 2.0 when creating the client or be able to only set accessToken.
const twitterClient = new TwitterClient({ accessToken: '', });
or
const twitterClient = new TwitterClient({ accessToken: '', OAuth2: true });
or
const twitterClient = new TwitterClient({ accessToken: '', auth_type: "oauth2.0" });
Describe alternatives you've considered
Official API.
Additional context
I'm trying to build an app so users if they want, go to a page, login and the app can post tweets on their behalf (with consent).