Skip to content

Commit

Permalink
Fixes #13
Browse files Browse the repository at this point in the history
  • Loading branch information
irazasyed committed Feb 18, 2016
1 parent e273c2e commit f0c4373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JwtAuthGuard.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function user()
return $this->user;
}

if (!$this->requireToken()->check()) {
if (! $this->jwt->getToken() || ! $this->jwt->check()) {
return null;
}

Expand Down

0 comments on commit f0c4373

Please sign in to comment.