Skip to content

Commit 04b2d55

Browse files
committed
Add 60 second leeway for JWT
Fixes #221 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
1 parent b1ad2eb commit 04b2d55

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)