From 9f0a0e77e2bd0adc6041792dd1c5f86cd138a4de Mon Sep 17 00:00:00 2001 From: Ali Usman Date: Sat, 3 Aug 2024 10:31:47 +0700 Subject: [PATCH] Fix web app detection (#24) --- packages/server/src/AuthDataValidator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/AuthDataValidator.ts b/packages/server/src/AuthDataValidator.ts index f2f3096..5cba548 100644 --- a/packages/server/src/AuthDataValidator.ts +++ b/packages/server/src/AuthDataValidator.ts @@ -167,7 +167,7 @@ export class AuthDataValidator { const dataStr = this.getFinalDataStr(authData); - const isWebAppData = authData.has('user') && authData.has('query_id'); + const isWebAppData = authData.has('user'); const signatureKey = await this.getSecretKey(isWebAppData);