Skip to content

Commit

Permalink
refactor the code
Browse files Browse the repository at this point in the history
  • Loading branch information
Behzad-rabiei committed Mar 5, 2024
1 parent 5831458 commit 8fe92ac
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/config/oAtuh2.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// prettier-ignore
/* eslint-disable */
/* eslint-disable no-unused-vars */
import crypto from 'crypto';
import { Client, GatewayIntentBits } from 'discord.js';
import config from './index';
Expand Down Expand Up @@ -71,7 +68,6 @@ export const twitter = {
scopes: {
connectAccount: 'tweet.read offline.access users.read',
},
//
generateTwitterAuthUrl(state: string, codeChallenge: string): string {
const baseTwitterUrl = 'https://twitter.com/i/oauth2/authorize';
return `${baseTwitterUrl}?response_type=code&client_id=${config.twitter.clientId}&redirect_uri=${encodeURIComponent(config.twitter.callbackURI.connect)}&scope=${encodeURIComponent(this.scopes.connectAccount)}&state=${state}&code_challenge=${codeChallenge}&code_challenge_method=S256`;
Expand Down

0 comments on commit 8fe92ac

Please sign in to comment.