We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 459694c commit 73461c0Copy full SHA for 73461c0
src/Auth/Own3dIdGuard.php
@@ -3,6 +3,7 @@
3
namespace Own3d\Id\Auth;
4
5
use Exception;
6
+use Firebase\JWT\ExpiredException;
7
use Firebase\JWT\JWT;
8
use Firebase\JWT\Key;
9
use Firebase\JWT\SignatureInvalidException;
@@ -123,7 +124,7 @@ private function decodeAuthorizationToken(string $token): stdClass
123
124
foreach (self::$extSecrets as $extSecret) {
125
try {
126
return JWT::decode($token, new Key($extSecret['n'], $extSecret['alg']));
- } catch (SignatureInvalidException $exception) {
127
+ } catch (SignatureInvalidException|ExpiredException $exception) {
128
// do nothing
129
}
130
0 commit comments