UNPKG

passport-telegram-web-app

Version:

A [Passport](https://www.passportjs.org/) strategy for [telegram web app (bots)](https://core.telegram.org/bots/webapps) authentication.

7 lines (6 loc) 400 B
import { DataInterface } from "./interfaces/data.interface"; import { HashVerifierCallbackFunction } from "./types/hash-verifier-callback.function"; export declare class Utils { static defaultDataToCheckString(data: DataInterface): string; static defaultHashVerifier(token: string, dataCheckString: string, hash: string, callback: HashVerifierCallbackFunction): void | Promise<void>; }