Skip to content

Commit ee03fa4

Browse files
GasparMDQbshaffer
authored andcommitted
Add missing exception to the catch chain (googleapis#1284)
1 parent 9bef249 commit ee03fa4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Google/AccessToken/Verify.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818

1919
use Firebase\JWT\ExpiredException as ExpiredExceptionV3;
20+
use Firebase\JWT\SignatureInvalidException;
2021
use GuzzleHttp\Client;
2122
use GuzzleHttp\ClientInterface;
2223
use Psr\Cache\CacheItemPoolInterface;
@@ -120,6 +121,8 @@ public function verifyIdToken($idToken, $audience = null)
120121
return false;
121122
} catch (ExpiredExceptionV3 $e) {
122123
return false;
124+
} catch (SignatureInvalidException $e) {
125+
// continue
123126
} catch (DomainException $e) {
124127
// continue
125128
}

0 commit comments

Comments
 (0)