Package Exports
- telegram-checking-authorization
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (telegram-checking-authorization) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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 :(')