telegram-checking-authorization
v1.0.0
Published
Checking authorization helper
Downloads
48
Maintainers
Readme
telegram-checking-authorization
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 :(')