@nixjs23n6/telegram-login
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@nixjs23n6/telegram-login

A Component React for Telegram Login

Quick Setup

Install

Install these dependencies:

yarn add @nixjs23n6/telegram-login

Setup & Usage

import { TelegramButton, TelegramUser } from '@nixjs23n6/telegram-login'

interface LoginPropArg {}

export const Login: React.FC<LoginPropArg> = () => {
    const responseTelegram = (response: TelegramUser) => console.log(response)

    return (<TelegramButton dataOnAuth={responseTelegram} botName={__TELEGRAM_BOT__}/>)
}

Dependencies (0)

    Dev Dependencies (28)

    Package Sidebar

    Install

    npm i @nixjs23n6/telegram-login

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    20.1 kB

    Total Files

    15

    Last publish

    Collaborators

    • nixjs23n6