From c63f37195af17e363508fe9f2bf32f56d91aefb5 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 1 May 2023 08:06:02 +0000 Subject: [PATCH] get jwt from request param --- app/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/init.php b/app/init.php index b5def038c1..292c54bb35 100644 --- a/app/init.php +++ b/app/init.php @@ -872,7 +872,7 @@ App::setResource('user', function ($mode, $project, $console, $request, $respons } } - $authJWT = $request->getHeader('x-appwrite-jwt', ''); + $authJWT = $request->getParam('jwt', $request->getHeader('x-appwrite-jwt', ''));; if (!empty($authJWT) && !$project->isEmpty()) { // JWT authentication $jwt = new JWT(App::getEnv('_APP_OPENSSL_KEY_V1'), 'HS256', 900, 10); // Instantiate with key, algo, maxAge and leeway.