grecopper.blogg.se

Telegram login page
Telegram login page






telegram login page

Unforuntately this is an extremely custom provider that we can't help much further with at the moment. Just thinking out loud here - the widget takes an argument, data-auth-url which is a callback URL telegram will forward to with all the users info attached as query params, maybe define a nextauth callback URL here and do some of the other verification work in one of the callback handlers ( ) ?

telegram login page

If they match, auhtorization was successful and you can return the telegram user details object from the authorize callback. You would have to replace the nextauth credentials login fields with the telegram login widget through a custom nextauth sign-in page, then in the authorize callback of the credentials provider, do the comparison of the returned telegram hash and the sha256 of the bot's secret key, see checking authorization in their login widget page you linked. The user clicks "login" and enters their telegram number, the bot sends them a confirmation code which they then enter in the login widget. As there are no username/password provided here it would be a bit trickier to get this working.įrom their docs you've linked, it looks like you setup a Telegram bot for your app / company.

telegram login page

However, you could use the credentials provider to implement a custom telegram provider. Note: You can also contribute to translating this plugin into your local language.The Telegram auth isn't a classic OAuth implementation. Many thanks to the translators for doing a great job!

  • Telegram Facebook Twitter occurs on Github, and all contributions are welcome.
  • Note: You need to use the same bot token for both the plugin and the Web App.
  • Login the user to the website in the context of your Web App.
  • Create a user account for the user if it doesn’t exist.
  • Simply send query string to this URL: The final URL might look like this: The plugin will: The plugin can also handle the data sent by the Telegram Web App. Goto Appearance > Widgets and click/drag WP Telegram Login and place it where you want it to be.Īlternatively, you can use the below shortcode. Let the users login to your website with their Telegram and make it simple for them to get connected and let them receive their email notifications.
  • Users can be given any desired role on the website.
  • Existing users can connect their Telegram account.
  • Easy to install and set up for the admin.
  • Can be used to prevent spam registrations.
  • User data is trustworthy – verified by Telegram.
  • telegram login page

  • Relies upon SHA-256 hashed data strings.
  • Provides enough information about the user.
  • Removes the need for email verification.
  • We have a public group on Telegram to help set up the plugin and discuss issues, features, translations, etc. Let the users login to your website with their Telegram and make it simple for them to get connected and let them receive their email notifications on Telegram.








    Telegram login page