From 2dc33598d80358dd4c8b618cb0d42aa2054f2005 Mon Sep 17 00:00:00 2001
From: Roman Sergienko <romasergienko@outlook.com>
Date: Fri, 04 Dec 2026 08:23:53 +0000
Subject: [PATCH] Use KeyboardButton with web_app for /panel command to open Mini App

---
 web/auth.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/web/auth.py b/web/auth.py
index 2541f89..bf80c2d 100644
--- a/web/auth.py
+++ b/web/auth.py
@@ -175,8 +175,8 @@
         token,
         max_age=SESS_TTL,
         httponly=True,
-        samesite="Lax",
-        secure=base_url(request).startswith("https"),
+        samesite="None",
+        secure=True,
     )
     return resp
 

--
Gitblit v1.9.3