Skip to content

Commit

Permalink
Update Token.php
Browse files Browse the repository at this point in the history
Fix in not falling through exception after fallback validator succeeded...

Signed-off-by: ramonschriks <[email protected]>
  • Loading branch information
ramonschriks committed Jan 9, 2024
1 parent 2dd8a74 commit 133feb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ public function validate(
} catch (InvalidTokenException $invalidTokenException) {
if ($tenantDomain !== $tokenIssuer) {
$validator->issuer($tenantDomain);
} else {
throw $invalidTokenException;
}

throw $invalidTokenException;
}

$validator
Expand Down

0 comments on commit 133feb1

Please sign in to comment.