telegram-checking-authorization

1.0.0 • Public • Published

telegram-checking-authorization

GitHub license

Check Telegram Login Widget hash manually

Installation

Install through npm:

npm install --save telegram-checking-authorization

Usage

Use it in your app like so:

import telegramCheckingAuthorization from 'telegram-checking-authorization';
 
if(telegramCheckingAuthorization(data, token)) console.log('Data is from telegram! ;)');
if(!telegramCheckingAuthorization(data, token)) console.log('Data is NOT from telegram :(')

Package Sidebar

Install

npm i telegram-checking-authorization

Weekly Downloads

14

Version

1.0.0

License

MIT

Unpacked Size

2.9 kB

Total Files

4

Last publish

Collaborators

  • therealguriev