Skip to content

Commit

Permalink
refactor: extract methods for validating scopes & audience separately
Browse files Browse the repository at this point in the history
  • Loading branch information
hschoenenberger committed Dec 10, 2024
1 parent 6fe0830 commit 7844c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Provider/Traits/TokenValidatorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function verifyToken($token, $refreshJwks = false)
if (!$refreshJwks && $e->getMessage() == '"kid" invalid, unable to lookup correct key') {
return $this->verifyToken($token, true);
}
throw new KidInvalidException($e->getMessage());
throw new Exception\TokenInvalidException($e->getMessage());
} catch (\Throwable $e) {
throw new Exception\TokenInvalidException($e->getMessage());
/* @phpstan-ignore-next-line */
Expand Down

0 comments on commit 7844c0c

Please sign in to comment.