In this guide, we will focus on setting up the client-side of a Telegram Mini App using Web3Auth for
authentication. By the end of this guide, you will:
This is a companion discussion topic for the original entry at https://web3auth.io/docs/guides/telegram-miniapp-client
Hi, where can we find the code base?
This is import is wrong:
import { useTelegramMock } from “./hooks/useMockTelegramInitData”;
→ import { useTelegramMock } from “./hooks/useTelegramMock”;
Hey @helwan.mande,
Thanks for pointing this out! I don’t think the import is wrong in any functional way other than the convention of naming the file the same as the hook it imports, which might make it easier to identify and maintain. While it’s not strictly necessary to name the file the same as the hook it imports, it’s a widely followed best practice in development.
If you’re facing any functional issues due to this, feel free to elaborate, and we’ll be happy to assist further!