mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-09-13 16:23:08 +00:00
feat(auth): allow manual opt-in for deep-link Telegram login
Currently the deep-link auth flow (t.me/{bot}?start=webauth_{token}) is
only triggered automatically as a fallback when the Telegram widget
script (oauth.telegram.org or telegram.org/js/telegram-widget.js) fails
to load. Users on unaffected networks have no way to choose this login
method even when they'd prefer confirming in the bot over typing a
phone number into the widget popup.
This adds a small 'Login via bot' link next to the existing widget,
reusing the exact same startDeepLinkAuth/poll logic already used by
the automatic fallback. No changes to the fallback behavior itself.
This commit is contained in:
@@ -210,6 +210,9 @@
|
||||
"orOpenInApp": "Или откройте бота в приложении",
|
||||
"loginFailed": "Ошибка входа",
|
||||
"telegramWidgetBlocked": "Виджет входа через Telegram недоступен. Войдите через бота:",
|
||||
"deepLinkIntro": "Подтвердите вход прямо в боте — без ввода номера телефона:",
|
||||
"loginWithBot": "Войти через бота (без номера телефона)",
|
||||
"backToWidget": "Назад к входу через виджет",
|
||||
"openBotToLogin": "Открыть бота для входа",
|
||||
"waitingForConfirmation": "Ожидание подтверждения...",
|
||||
"deepLinkExpired": "Ссылка истекла. Попробуйте снова.",
|
||||
|
||||
Reference in New Issue
Block a user