Merge pull request #430 from honzapatCZ/patch-1

Rename old TWITTER_CLIENT_ID(and SECRET) to new X_CLIENT_ID naming convention
This commit is contained in:
James Read 2024-11-22 17:29:51 -06:00 committed by GitHub
commit b99069446b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ export class XProvider extends SocialAbstract implements SocialProvider {
async refreshToken(refreshToken: string): Promise<AuthTokenDetails> {
const startingClient = new TwitterApi({
clientId: process.env.TWITTER_CLIENT_ID!,
clientSecret: process.env.TWITTER_CLIENT_SECRET!,
clientId: process.env.TWITTER_CLIENT_ID! || process.env.X_CLIENT_ID!,
clientSecret: process.env.TWITTER_CLIENT_SECRET! || process.env.X_CLIENT_SECRET!,
});
const {
accessToken,