Skip to content

Commit 0b71549

Browse files
authored
Merge pull request #232 from nextcloud/fix/221
Add 60 second leeway for JWT
2 parents b1ad2eb + 04b2d55 commit 0b71549

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Controller/LoginController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ public function code($state = '', $code = '', $scope = '') {
196196
$this->logger->debug('Parsed the jwks');
197197

198198
// TODO: proper error handling
199+
JWT::$leeway = 60;
199200
$payload = JWT::decode($data['id_token'], $jwks, array_keys(JWT::$supported_algs));
200201

201202
$this->logger->debug('Parsed the JWT');

0 commit comments

Comments
 (0)