From 12251fb6178c56aff83b7777381156f3d28f6716 Mon Sep 17 00:00:00 2001 From: Eric Doughty-Papassideris Date: Wed, 5 Jun 2024 23:32:57 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Ignore=20session=20information?= =?UTF-8?q?=20for=20JWTs=20generated=20for=20applications=20(#515)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tdrive/backend/node/src/core/platform/services/auth/web/jwt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tdrive/backend/node/src/core/platform/services/auth/web/jwt.ts b/tdrive/backend/node/src/core/platform/services/auth/web/jwt.ts index 641b99c0..2810a5b1 100644 --- a/tdrive/backend/node/src/core/platform/services/auth/web/jwt.ts +++ b/tdrive/backend/node/src/core/platform/services/auth/web/jwt.ts @@ -22,7 +22,7 @@ const jwtPlugin: FastifyPluginCallback = async (fastify, _opts, next) => { const jwt: JwtType = await request.jwtVerify(); // Verify the SID exists and is valid except tokens for the public link - if (!jwt.public_token_document_id) { + if (!jwt.public_token_document_id && !jwt.application_id) { await gr.services.console.getClient().verifyJwtSid(jwt.sid); }