Skip to content

Commit 4531d56

Browse files
Merge pull request #8 from harsh-biztech/update-authtoken-if-already-existing-in-system
Fixes to update token values if already exists
2 parents 116b998 + 8048245 commit 4531d56

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)