diff --git a/src/Auth/JwtAuthenticate.php b/src/Auth/JwtAuthenticate.php index 2044c92..99959cd 100644 --- a/src/Auth/JwtAuthenticate.php +++ b/src/Auth/JwtAuthenticate.php @@ -125,6 +125,10 @@ public function getUser(Request $request) { $payload = $this->getPayload($request); + if (empty($payload)) { + return false; + } + if (!$this->_config['queryDatasource']) { return json_decode(json_encode($payload), true); }