Skip to content

Commit

Permalink
Merge pull request #26 from senorgeno/parsed-token-fix
Browse files Browse the repository at this point in the history
Fix test for parsed token on token validation
  • Loading branch information
Firesphere committed Aug 2, 2019
2 parents 76e80ae + 478e0d8 commit f41c61b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Authentication/JWTAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}

Expand Down

0 comments on commit f41c61b

Please sign in to comment.