1.0.5 • Published 2 years ago

@use-telegram-auth/client v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

@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!
1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago