Skip to content

Commit

Permalink
Add conditional for Twitter code_verifier check
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Aug 27, 2024
1 parent ff3d090 commit 613a1c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/providers/Twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 613a1c2

Please sign in to comment.