Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2021-11-28 23:45:12 +0300
committerThomas Bruederli <thomas@roundcube.net>2021-12-03 00:43:46 +0300
commitd2f24f20a95e912d3303a11168d3bd94ebb99c15 (patch)
tree942e9c67e398af0b1436528b00450ab556ede74c
parentfc0910cef50f17c231e1290db2c1aa91315b7423 (diff)
Fix expiration of short-lived oauth tokens (#8147)
Just add a small margin of 10s to consider the transfer and processing time between oauth server and roundcube.
-rw-r--r--program/include/rcmail_oauth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcmail_oauth.php b/program/include/rcmail_oauth.php
index 0f8736ad4..77469864e 100644
--- a/program/include/rcmail_oauth.php
+++ b/program/include/rcmail_oauth.php
@@ -429,7 +429,7 @@ class rcmail_oauth
protected function mask_auth_data(&$data)
{
// compute absolute token expiration date
- $data['expires'] = time() + $data['expires_in'] - 600;
+ $data['expires'] = time() + $data['expires_in'] - 10;
// encrypt refresh token if provided
if (isset($data['refresh_token'])) {