Skip to content

Commit 7669606

Browse files
committed
typing
1 parent 52e6b6c commit 7669606

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Oidc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,10 @@ public function fetchToken($request)
158158
}
159159

160160

161-
public function validateJwtToken($accessToken, $certs) {
161+
public function validateJwtToken(string $accessToken, $certs) {
162162
try {
163163
$decoded = [];
164+
if ($accessToken === '') { { throw new \Exception('Raw JWT token is empty string.', 401); } }
164165

165166
// Instantiate the algorithm manager with required algorithms
166167
$jwsVerifier = new JWSVerifier(new AlgorithmManager([

0 commit comments

Comments
 (0)