diff --git a/src/providers/Twitter.php b/src/providers/Twitter.php index fa09bea..6312ea3 100644 --- a/src/providers/Twitter.php +++ b/src/providers/Twitter.php @@ -41,7 +41,9 @@ protected function getAuthorizationQuery(array $params): string protected function getAccessTokenRequest(array $params): RequestInterface { // Apply PKCE token - $params['code_verifier'] = Session::get('oauth2verifier'); + if (!isset($params['code_verifier'])) { + $params['code_verifier'] = Session::get('oauth2verifier'); + } return parent::getAccessTokenRequest($params); }