Skip to content

Commit

Permalink
Merge branch 'craft-4' of https://github.com/verbb/auth into craft-5
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
#	composer.json
  • Loading branch information
engram-design committed Aug 27, 2024
2 parents d573df3 + f3312b8 commit 014c2f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@
- Fix an error with URL generation for authenticated requests.
- Fix error handling for IdentityServer4 provider.

## 1.0.31 - 2024-08-27

### Fixed
- Add conditional for Twitter `code_verifier` check to prevent errors when already supplied.

## 1.0.30 - 2024-08-09

### Fixed
Expand Down
4 changes: 3 additions & 1 deletion src/providers/Twitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,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 014c2f1

Please sign in to comment.