fix: add retry logic for Telegram Mini App auth failures

Auto-retry once on 401 with 1.5s delay, plus a manual retry button
with a hint to reopen the app if auth keeps failing.
This commit is contained in:
c0mrade
2026-02-06 21:53:56 +03:00
parent 692e45ad18
commit a1c0ceba19
5 changed files with 76 additions and 9 deletions

View File

@@ -153,6 +153,8 @@
"or": "或",
"registerHint": "要通过邮箱注册请先通过Telegram登录然后在设置中绑定邮箱。",
"telegramRequired": "需要Telegram授权",
"telegramRetryFailed": "授权失败。请关闭应用后重新打开。",
"telegramReopenHint": "如果问题持续存在,请关闭并重新打开应用",
"telegramNotConfigured": "Telegram机器人未配置",
"authenticating": "正在验证...",
"orOpenInApp": "或在应用中打开机器人",