1.0.0 • Published 6 years ago
telegram-checking-authorization v1.0.0
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 :(')
1.0.0
6 years ago