mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
added fallback to read query params for jwt auth
This commit is contained in:
1 parent
6b2cb1817f
commit
c1e1c98263
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user