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); }