1.0.0 • Published 6 years ago

telegram-checking-authorization v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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