Skip to main content

Verifying telegram user token.

Project description

How to use

1. authorization.py

from tma_authenticator.tma_authentication_router import TMAAuthenticationRouter
from tma_authenticator.tma_authenticator import TMAAuthenticator

from database.users import UsersDatabase
from config import TELEGRAM_BOT_TOKEN, IMPERSONATE_ADMIN_PASSWORD

user_database: UsersDatabase = UsersDatabase()
authenticator = TMAAuthenticator(TELEGRAM_BOT_TOKEN, IMPERSONATE_ADMIN_PASSWORD, user_database)
authentication_router = authenticator.authentication_router
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tma_authenticator-1.1.2.dev21202.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file tma_authenticator-1.1.2.dev21202.tar.gz.

File metadata

  • Download URL: tma_authenticator-1.1.2.dev21202.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.10 Linux/5.4.0-146-generic

File hashes

Hashes for tma_authenticator-1.1.2.dev21202.tar.gz
Algorithm Hash digest
SHA256 85985972ac22e0ab503fb13f405888f99f09fd3386e23f778da20affb2dde9eb
MD5 1ba26ec52b8242875f021f74150821c0
BLAKE2b-256 3457af4948bf4bd1ebfab3728303669c68e3430177811f9f2f9937ed8e8f8936

See more details on using hashes here.

File details

Details for the file tma_authenticator-1.1.2.dev21202-py3-none-any.whl.

File metadata

File hashes

Hashes for tma_authenticator-1.1.2.dev21202-py3-none-any.whl
Algorithm Hash digest
SHA256 375021fdb687da99d32bcb8a61f02c682c5e5c6289018f8920e70a805966f00b
MD5 fa1752f0a3931c25666a46eab8a0a9a9
BLAKE2b-256 6f09927320bb5e4485061db9bacf826677ec490046502522d1452c29f5eb04a9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page