Skip to content

Commit

Permalink
Apply code styling rules
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed Dec 29, 2023
1 parent 6a2ecc4 commit d95cd7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public function validate(
?int $tokenLeeway = null,
?int $tokenNow = null,
): self {
$tenantDomain = $this->configuration->formatDomain(true) . "/";
$tenantDomain = $this->configuration->formatDomain(true) . '/';
$tokenIssuer ??= $this->configuration->formatDomain() . '/';
$tokenAudience ??= $this->configuration->getAudience() ?? [];
$tokenOrganization ??= $this->configuration->getOrganization() ?? null;
Expand All @@ -279,9 +279,10 @@ public function validate(
try {
$validator->issuer($tokenIssuer);
} catch (InvalidTokenException $invalidTokenException) {
if($tenantDomain !== $tokenIssuer) {
if ($tenantDomain !== $tokenIssuer) {
$validator->issuer($tenantDomain);
}

throw $invalidTokenException;
}

Expand Down

0 comments on commit d95cd7d

Please # to comment.