Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.

Latest commit

 

History

History
50 lines (35 loc) · 1.4 KB

File metadata and controls

50 lines (35 loc) · 1.4 KB

@telegram-auth remix-basic example

Warning

Deprecated. This example uses the @telegram-auth/* packages, which are deprecated in favour of Telegram's OpenID Connect login.

The equivalent is two routes — one that redirects to https://oauth.telegram.org/auth with PKCE, one that exchanges the code and verifies the ID token.

Rolling it yourself in the migration guide.

Kept for reference only; it is not maintained.

Get Started

  1. Clone the repository

    git clone https://github.com/manzoorwanijk/telegram-auth.git
    cd telegram-auth
  2. Install and build dependencies

    pnpm install
    pnpm kick-off
  3. Go to the remix-basic example folder

    cd examples/remix-basic
  4. Create a .env file by copying .example.env and update BOT_TOKEN and BOT_USERNAME with your bot's token and username that you got from @BotFather.

  5. Start the dev server

    pnpm run dev
  6. You may want to use ngrok to expose your local server to the internet.

    ngrok http 3000

    Don't forget to send /setdomain command to @BotFather with the ngrok URL to fix the "Bot domain invalid" error.