Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 701 Bytes

README.MD

File metadata and controls

22 lines (14 loc) · 701 Bytes

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 :(')