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


Release history Release notifications | RSS feed

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-0.0.1.dev26823.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tma_authenticator-0.0.1.dev26823-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file tma_authenticator-0.0.1.dev26823.tar.gz.

File metadata

  • Download URL: tma_authenticator-0.0.1.dev26823.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.8 Linux/5.4.0-146-generic

File hashes

Hashes for tma_authenticator-0.0.1.dev26823.tar.gz
Algorithm Hash digest
SHA256 ea6c185fa0ec2ee0eb36716f3d2858ef7896e9d1e57eeeb900cc9355a0ca0fa2
MD5 34c691d7587ff4e1754205dca69b7175
BLAKE2b-256 4e9a86977d15cc131023e3203a42dd501cd98488a2505504e6c751322861feb7

See more details on using hashes here.

File details

Details for the file tma_authenticator-0.0.1.dev26823-py3-none-any.whl.

File metadata

File hashes

Hashes for tma_authenticator-0.0.1.dev26823-py3-none-any.whl
Algorithm Hash digest
SHA256 485ee7cc257cad3a87dada92c0d5086b000d70b610f43fa849dcfe1adfe25887
MD5 c4846b7a36cb61d670dc55c052fda337
BLAKE2b-256 118fbc49850a1a7cb4949d4196667d4f80d853525abf6795b91bebdbe8f6b05f

See more details on using hashes here.

Supported by

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