diff --git a/src/Service/JwtAuth.php b/src/Service/JwtAuth.php index 7ce6cd2..bd8cdce 100644 --- a/src/Service/JwtAuth.php +++ b/src/Service/JwtAuth.php @@ -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(); + } + }