Popup or redirect
Drop in the TelegramLoginButton component for Telegram's popup, or send people through the OpenID Connect redirect. Inside Telegram's own browser the login is confirmed in the app.
Telegram's login widget and OAuth redirect in your Nuxt app, with the session checked and sealed on the server.

nuxt-telegram-auth adds "Log in with Telegram" to a Nuxt app. People sign in with the Telegram account they already have, so there are no passwords to store and no email to confirm. The module handles the whole flow: it shows Telegram's login button or sends the browser to Telegram, checks the answer on your server and keeps the user logged in with a cookie.
It suits apps whose users are already on Telegram, such as a dashboard for a bot, a community site or a tool for a group chat, and any Nuxt project that wants a login without running its own user database.
<TelegramLoginButton> and confirms in Telegram's popup, or follows a link to /auth/telegram for the redirect flow.id_token. Your server checks it against Telegram's public keys and against the one-time values the module created for that login: a nonce for both flows, plus state and PKCE for the redirect.telegram-auth:login hook, if you registered one, and writes the session into a sealed, HttpOnly cookie.useTelegramSession() in your components and requireTelegramSession(event) in your server routes read that session.The browser never decides who is logged in. Only data that passed the server checks ends up in the session.