fix: restore telegram mini app auth

This commit is contained in:
3252a8
2026-05-22 14:47:01 +03:00
parent 9e56715e77
commit c82779e15b
5 changed files with 51 additions and 10 deletions
@@ -362,6 +362,7 @@ export function createAccountStore({
}
async function logout() {
if (telegramSdk.hasLaunchParams()) return;
markManualLogout();
clearToken();
try {
+5 -5
View File
@@ -61,11 +61,6 @@ export async function runWebappBoot({
);
}
if (isManuallyLoggedOut()) {
showLogin();
return;
}
const widgetAuthData = readTelegramLoginWidgetAuthData();
if (widgetAuthData && (await finalizeTelegramAuth(widgetAuthData, "auth_data"))) return;
@@ -78,6 +73,11 @@ export async function runWebappBoot({
}
}
if (isManuallyLoggedOut()) {
showLogin();
return;
}
if (getToken() || getCsrfToken()) {
try {
await loadData();