JSPM

telegram-checking-authorization

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q31254F
  • License MIT

Checking authorization helper

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

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