Skip to content

Commit

Permalink
Update JwtAuth.php
Browse files Browse the repository at this point in the history
  • Loading branch information
edenleung authored Apr 9, 2021
1 parent 7950dc4 commit 7540d4e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Service/JwtAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,10 @@ public function logout(string $token = null)
$token = $service->parse($token);
$this->app->get('jwt.manager')->logout($token);
}

public function user()
{
return $this->app->get('jwt.user')->find();
}

}

0 comments on commit 7540d4e

Please sign in to comment.