added fallback to read query params for jwt auth

This commit is contained in:
ArnabChatterjee20k committed 2026-06-24 10:18:59 +05:30
1 parent 6b2cb1817f
commit c1e1c98263
1 file changed
+1 -1
+1 -1
View File
@@ -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);