{"repo":"blitss/passport-telegram-strategy","free":true,"listed":false,"github":"https://github.com/blitss/passport-telegram-strategy","clone":"git clone https://github.com/blitss/passport-telegram-strategy.git","description":"Passport strategy for Telegram Login widget","language":"TypeScript","stars":32,"topics":["telegram","passport","widget","strategy","telegram-authentication","nodejs"],"license":null,"category":"chat-messaging","readme_excerpt":"passport-telegram-official Passport strategy for authenticating with Telegram using their Widget. This module lets you authenticate using Telegram in your Node.js applications. By plugging into Passport, Telegram authentication can be easily and unobtrusively integrated into any application or framework that supports Connect-style middleware, including Express. Install $ npm install passport-telegram-official or $ yarn add passport-telegram-official Usage Create an Application Before using passport-telegram-official , you must register your bot and get a API token. Read more about it on Telegram Documentation. Then you must set your domain using /setdomain command sent to @BotFather Configure Strategy The Telegram authentication strategy authenticates users using a Telegram account and Telegram own OAuth. That is simply. Just specify botToken and verify callback to complete authentication. Authenticate Requests Set'up a route to receive requests Widget Generate widget here and paste code on your site. Like this: Examples Start a server from example folder and go to home page. Note it won't work on localhost . FAQ Contributing Tests Isn't done yet. License The MIT License","default_branch":null,"files":null,"tree":[],"storefront":"/r/blitss","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/blitss/passport-telegram-strategy/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}