@use-telegram-auth/client
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

@use-telegram-auth/client

Perform Telegram user authentication without using the Telegram login widget

Installation

npm i @use-telegram-auth/client

Usage

Using default options:

import telegramAuth from "@use-telegram-auth/client";

const BOT_ID = "123";

const result = await telegramAuth(BOT_ID);

// Validate the result on server-side!

Tweaking some options:

import telegramAuth from "@use-telegram-auth/client";

const BOT_ID = "123";

const result = await telegramAuth(BOT_ID, { windowFeatures: { popup: true } });

// Validate the result on server-side!

Package Sidebar

Install

npm i @use-telegram-auth/client

Weekly Downloads

132

Version

1.0.5

License

ISC

Unpacked Size

8.54 kB

Total Files

6

Last publish

Collaborators

  • cs-balazs