From c1e1c98263f82f0c3105b0a7302eb118ccb9bb76 Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Wed, 24 Jun 2026 10:18:59 +0530 Subject: [PATCH] added fallback to read query params for jwt auth --- app/init/realtime/connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/init/realtime/connection.php b/app/init/realtime/connection.php index 397d077aa7..571b5dfc77 100644 --- a/app/init/realtime/connection.php +++ b/app/init/realtime/connection.php @@ -271,7 +271,7 @@ return function (Container $container): void { $user = new User([]); } - $authJWT = $request->getHeaderLine('x-appwrite-jwt', ''); + $authJWT = $request->getHeaderLine('x-appwrite-jwt', (string)($request->getParam('jwt', ''))); if (!empty($authJWT) && !$project->isEmpty()) { if (!$user->isEmpty()) { throw new Exception(Exception::USER_JWT_AND_COOKIE_SET);