telegram-login-widget
v0.1.12
Published
A zero-dependency package for validating Telegram Login Widget data using Web Crypto API.
Downloads
84
Maintainers
Readme
Telegram Login Widget
A zero-dependency package for validating Telegram Login Widget data using Web Crypto API.
Getting Started
Installation
pnpm add telegram-login-widget
Usage
import { validate } from 'telegram-login-widget'
const botToken = 'YOUR BOT TOKEN'
const data = {
// Telegram Login Widget data
}
const isValid = await validate(botToken, data)
console.log(isValid)