📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

telegram-login-widget

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

telegram-login-widget

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

0.1.12
latest
Source
npm
Version published
Weekly downloads
13
-27.78%
Maintainers
1
Weekly downloads
 
Created
Source

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)

Keywords

telegram

FAQs

Package last updated on 31 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts