feat: open OAuth linking in external browser from Telegram Mini App

- Rewrite OAuthCallback.tsx to handle 3 modes: login, link-browser,
  and link-server (external browser without JWT)
- Add linkServerComplete API method (no JWT, auth via state token)
- Update ConnectedAccounts to use platform.openLink() in Mini App
- Add server-complete endpoint to AUTH_ENDPOINTS (skip Bearer token)
- Enable refetchOnWindowFocus for linked-providers query
- Add returnToTelegram/openTelegram i18n keys (ru, en, zh, fa)
This commit is contained in:
Fringg
2026-03-05 02:24:28 +03:00
parent 9b4a8512c2
commit 7c30a1eab6
8 changed files with 192 additions and 34 deletions

View File

@@ -3616,6 +3616,8 @@
"goToAccounts": "Connected Accounts",
"linking": "Linking account...",
"linkingTelegram": "Connecting Telegram...",
"returnToTelegram": "Return to Telegram to continue",
"openTelegram": "Open Telegram",
"providers": {
"telegram": "Telegram",
"email": "Email",

View File

@@ -3052,6 +3052,8 @@
"goToAccounts": "حساب‌های متصل",
"linking": "در حال اتصال حساب...",
"linkingTelegram": "در حال اتصال تلگرام...",
"returnToTelegram": "برای ادامه به تلگرام بازگردید",
"openTelegram": "باز کردن تلگرام",
"providers": {
"telegram": "تلگرام",
"email": "ایمیل",

View File

@@ -4176,6 +4176,8 @@
"goToAccounts": "Привязанные аккаунты",
"linking": "Привязка аккаунта...",
"linkingTelegram": "Привязка Telegram...",
"returnToTelegram": "Вернитесь в Telegram, чтобы продолжить",
"openTelegram": "Открыть Telegram",
"providers": {
"telegram": "Telegram",
"email": "Email",

View File

@@ -3051,6 +3051,8 @@
"goToAccounts": "关联账户",
"linking": "正在关联账户...",
"linkingTelegram": "正在关联 Telegram...",
"returnToTelegram": "返回 Telegram 继续操作",
"openTelegram": "打开 Telegram",
"providers": {
"telegram": "Telegram",
"email": "邮箱",