Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
Merged
Prev Previous commit
Next Next commit
Set request for auth handler
  • Loading branch information
netdown authored Aug 13, 2019
commit 61cb4d1724bd01c5b6a197a48ef11dbedf9ee515
1 change: 1 addition & 0 deletions src/Websocket/Middleware/Authenticate.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public function __construct(Auth $auth)
public function handle($request, Closure $next)
{
try {
$this->auth->setRequest($request);
if ($user = $this->auth->authenticate()) {
$request->setUserResolver(function () use ($user) {
return $user;
Expand Down