Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
Merged
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