Skip to content

A zero-dependency package for validating Telegram Login Widget data using Web Crypto API

License

Notifications You must be signed in to change notification settings

az33zy/telegram-login-widget

Repository files navigation

Telegram Login Widget

Build Status Version Bundle Size Coverage Status License

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)

About

A zero-dependency package for validating Telegram Login Widget data using Web Crypto API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published