@cheqd/connector-telegram
v1.4.0
Published
Telegram OAuth connector for LogTo
Downloads
31
Readme
Telegram OAuth connector for LogTo
ℹ️ Overview
This NPM package is a custom OAuth connector designed for LogTo for use with Telegram. LogTo is an open-source identity management software with out-of-the-box support for many social connectors, and allows custom connectors to be created.
🛠️ Configuration
Once you've added this custom connector to LogTo (see Developer Guide) below, you need to configure your connector. The steps defined below mirror the setup guide for the Telegram Login Button widget.
- Register a new Telegram bot using the
@Botfather
Telegram bot. - Send the
/setdomain
message to@Botfather
to set a public redirect URI for the bot.- Telegram expects this domain to be publicly-routable. Therefore, trying to specify this as
localhost
or a non-public domain name doesn't work.
- Telegram expects this domain to be publicly-routable. Therefore, trying to specify this as
- Copy the Bot Token and the Bot Domain. These credentials need to be set in your LogTo admin dashboard to configure and activate the connector.
🧑💻 Developer Guide
Use with LogTo
To use this connector with LogTo, copy the NPM package contents into a new folder under packages/connectors/connectors-telegram
on a copy of the LogTo repository or the LogTo Docker image.
You can build just this library using:
npm install
npm run build
💬 Community
The cheqd Community Slack is our primary chat channel for the open-source community, software developers, and node operators.
Please reach out to us there for discussions, help, and feedback on the project.