This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {OAuth2User, OAuth2UserOptions} from "twitter-api-sdk/dist/OAuth2User.js"; | |
export default class TwitterOauthService extends OAuth2User { | |
#options: OAuth2UserOptions | |
#code_verifier?: string | |
#code_challenge?: string | |
/** | |
* Modified so that codeVerifier and codeChallenge can be set in the constructor. | |
* Also, codeVerifier and codeChallenge need to be saved in cookies etc., so I made a getter. |