Skip to content

Commit 7c4c8f0

Browse files
authored
Fix getAccessToken always returning null (#1030)
1 parent 1b83ac5 commit 7c4c8f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/Api/BaseApi.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public function getOAuthToken(): ?OAuth2Token
180180

181181
public function getAccessToken(?OAuth2Token $oAuth2Token): ?AccessToken
182182
{
183-
if ($oAuth2Token) {
183+
if (!$oAuth2Token) {
184184
return null;
185185
}
186186

0 commit comments

Comments
 (0)