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-1.2.0.dev23158.tar.gz (4.3 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-1.2.0.dev23158-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file tma_authenticator-1.2.0.dev23158.tar.gz.

File metadata

  • Download URL: tma_authenticator-1.2.0.dev23158.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.11.10 Linux/5.4.0-146-generic

File hashes

Hashes for tma_authenticator-1.2.0.dev23158.tar.gz
Algorithm Hash digest
SHA256 dcec987dd64d93dc5c458cf6e92063d8037094fe4b8cf06d5d66d3c10b415377
MD5 c615b69269b33f442313dd13bfba3026
BLAKE2b-256 0e24659527509e95a784cb962aac53de7d804ddb132e22fc7da64d7df55f71d6

See more details on using hashes here.

File details

Details for the file tma_authenticator-1.2.0.dev23158-py3-none-any.whl.

File metadata

File hashes

Hashes for tma_authenticator-1.2.0.dev23158-py3-none-any.whl
Algorithm Hash digest
SHA256 0bad13698141a26cb3f7fe30e2a21e1b96a4b655262643d19124ef6194090e88
MD5 d7c34df9951aedec33596fb0c38db25f
BLAKE2b-256 448f6d29b1217f6b3ac69c30dc6767d632a6df3564d2b4f19d82ce27a960d01d

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