Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 61cb4d1

Browse files
authored
Set request for auth handler
1 parent d529bb3 commit 61cb4d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Websocket/Middleware/Authenticate.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public function __construct(Auth $auth)
4242
public function handle($request, Closure $next)
4343
{
4444
try {
45+
$this->auth->setRequest($request);
4546
if ($user = $this->auth->authenticate()) {
4647
$request->setUserResolver(function () use ($user) {
4748
return $user;

0 commit comments

Comments
 (0)