Skip to content

Commit c9520dd

Browse files
🐛fix: Adjust access token expiration time to resolve expired token issues
1 parent e573f83 commit c9520dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/Efi/Auth.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private function updateCache(array $response)
107107
$this->expires = time() + $response['expires_in'];
108108
$this->scopes = ($this->options['api'] === 'CHARGES') ? ['charge'] : explode(' ', $response['scope']);
109109

110-
$session_expire = ($this->options['api'] === 'CHARGES') ? 600 : 3600;
110+
$session_expire = ($this->options['api'] === 'CHARGES') ? 570 : 3570;
111111
$accessTokenEncrypted = $this->encryptAccessToken();
112112

113113
$this->cache->set($hashAccessToken, $accessTokenEncrypted, $session_expire);

0 commit comments

Comments
 (0)