Skip to content

Commit 8048245

Browse files
committed
Changed condition for update token if already exists
1 parent b2702cb commit 8048245

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/CallbackController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function index()
5656
// Store token details
5757
$this->loadComponent('XeroOauth2.Storage');
5858

59-
if ($this->Storage->getAccessToken() === null) {
59+
if ($this->Storage->getAccessToken() !== null) {
6060
$this->Storage->updateToken(
6161
$accessToken->getToken(),
6262
$result[0]->getTenantId(),

0 commit comments

Comments
 (0)