Telegram Authentication/Login with Web3Auth

This topic seems to be closed => Getting error when try to do custom authentication - #6 by dayanidhee.singh

Any chance to have a confirmation of Telegram authentication ?

Thanks !

Hey @pvdyck

Yes, you can use Telegram login by using the Custom Authentication process.

Thank you so much for your prompt answer, is there a specific configuration guide or tutorial I should follow and is the previous thread a good start?

Hello @pvdyck,

The flow would be to first create a Telegram bot that allows users to log in to Telegram and fetch their user details in the backend. Although we don’t have a step-by-step guide for this, here’s a general flow that you can follow:

  1. Begin by creating a Telegram bot that will enable users to log in to Telegram.

  2. Once a user has successfully logged in, the bot should return an authorization code.

  3. Use this authorization code to fetch the user’s details in the backend.

  4. Create a JWT token using the user’s information. The private key will be used to sign the token, which will then be used to convert to a public key that later gets converted into JWKS format and should be exposed publicly via a URL.

  5. Create a custom verifier using Web3Auth SDK and the JWT & JWKS information.

  6. Use the Web3Auth SDK to pass the JWT token to the verifier.

  7. Finally, retrieve the user’s ETH/Solana address.

I hope this helps! Let me know if you have any further questions or concerns.

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.