TOKEN
from Telegram and set your web app URL as the LOGIN_URL
in scripts/bot.ts
or add them as environment variables./start
.isAuthWithTelegram()
function verifies whether the user is authenticated through Telegram.
telegramSignIn
is called within your mini app, the token is grabbed from the URL query parameters and used to authenticate the user
telegramSignIn
hooktelegramSignIn
hook. This is useful if you are generating the Telegram auth token somewhere outside of Telegram
such as your backend.
LOGIN_URL
and TOKEN
.
Ensure that the logic for seamless login and user verification is working as expected, both server-side and on the front end.