Skip to content

Commit

Permalink
Merge pull request #476 from FreekVandeursen/token-expire-time
Browse files Browse the repository at this point in the history
Reduce the access token refresh interval rate.
  • Loading branch information
casperbakker authored Jul 1, 2021
2 parents 98aea2a + 166aaa5 commit a34e52b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Picqer/Financials/Exact/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ private function tokenHasExpired()
return true;
}

return ($this->tokenExpires - 60) < time();
return ($this->tokenExpires - 10) < time();
}

private function formatUrl($endPoint, $includeDivision = true, $formatNextUrl = false)
Expand Down

0 comments on commit a34e52b

Please sign in to comment.