From 133feb102fec71f606581f6b09d3f933355680ee Mon Sep 17 00:00:00 2001 From: ramonschriks Date: Tue, 9 Jan 2024 17:40:49 +0100 Subject: [PATCH] Update Token.php Fix in not falling through exception after fallback validator succeeded... Signed-off-by: ramonschriks --- src/Token.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Token.php b/src/Token.php index 7ed7101f..f4a91895 100644 --- a/src/Token.php +++ b/src/Token.php @@ -281,9 +281,9 @@ public function validate( } catch (InvalidTokenException $invalidTokenException) { if ($tenantDomain !== $tokenIssuer) { $validator->issuer($tenantDomain); + } else { + throw $invalidTokenException; } - - throw $invalidTokenException; } $validator