From 478e0d8e1363cca4fdca21a766b1f4687530bdbb Mon Sep 17 00:00:00 2001 From: Senorgeno Date: Thu, 1 Aug 2019 13:39:04 +1200 Subject: [PATCH] Fix test for parsed token on token validation --- src/Authentication/JWTAuthenticator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Authentication/JWTAuthenticator.php b/src/Authentication/JWTAuthenticator.php index 4d3b31b..91742af 100644 --- a/src/Authentication/JWTAuthenticator.php +++ b/src/Authentication/JWTAuthenticator.php @@ -278,7 +278,7 @@ public function validateToken(string $token, HTTPrequest $request): array { // Parse token $parsedToken = $this->parseToken($token); - if ($parsedToken) { + if (!$parsedToken) { return [null, TokenStatusEnum::STATUS_INVALID]; }