Skip to content

Commit 77a2ee9

Browse files
PRE-3064 fix: Update JWT expiracy
1 parent 2eeaa98 commit 77a2ee9

File tree

2 files changed

+1
-408
lines changed

2 files changed

+1
-408
lines changed

lib/Payplug/Authentication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public static function generateJWT($client_id = '', $client_secret = '')
166166
return array();
167167
}
168168

169-
$response['httpResponse']['expires_date'] = time() + $response['httpResponse']['expires_in'];
169+
$response['httpResponse']['expires_date'] = time() + $response['httpResponse']['expires_in'] - 30;
170170

171171
return $response;
172172
} catch (Exception $e) {

0 commit comments

Comments
 (0)