Skip to content

Commit c62e76c

Browse files
committed
Return early if payload is empty.
1 parent 3ffcb9b commit c62e76c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Auth/JwtAuthenticate.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ public function getUser(Request $request)
125125
{
126126
$payload = $this->getPayload($request);
127127

128+
if (empty($payload)) {
129+
return false;
130+
}
131+
128132
if (!$this->_config['queryDatasource']) {
129133
return json_decode(json_encode($payload), true);
130134
}

0 commit comments

Comments
 (0)