Skip to content

Commit 6919712

Browse files
committed
Fix for jumbojett/openid-connect-php v1.0: Only set accessToken if already loaded in Bexio\Client instance
1 parent 6a9a9b8 commit 6919712

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# CHANGELOG
22

3-
## [0.6.x (unreleased)](https://github.com/onlime/bexio-api-client/compare/0.5.0...main)
3+
## [0.6.x (unreleased)](https://github.com/onlime/bexio-api-client/compare/0.6.1...main)
4+
5+
## [0.6.1 (2024-10-09)](https://github.com/onlime/bexio-api-client/compare/0.6.0...0.6.1)
6+
7+
- Fix for `jumbojett/openid-connect-php` v1.0: Only set accessToken if already loaded in `Bexio\Client` instance.
48

59
## [0.6.0 (2024-10-08)](https://github.com/onlime/bexio-api-client/compare/0.5.0...0.6.0)
610

src/Bexio/AbstractClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function getOpenIDConnectClient(): OpenIDConnectClient
8787
$this->clientId,
8888
$this->clientSecret
8989
);
90-
$oidc->setAccessToken($this->accessToken);
90+
$this->accessToken && $oidc->setAccessToken($this->accessToken);
9191
return $oidc;
9292
}
9393

0 commit comments

Comments
 (0)