Skip to content

Commit

Permalink
Fix test for parsed token on token validation
Browse files Browse the repository at this point in the history
  • Loading branch information
senorgeno committed Aug 1, 2019
1 parent 76e80ae commit 478e0d8
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 478e0d8

Please sign in to comment.