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.2.0.dev0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

tma_authenticator-1.2.0.dev0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tma_authenticator-1.2.0.dev0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Darwin/24.0.0

File hashes

Hashes for tma_authenticator-1.2.0.dev0.tar.gz
Algorithm Hash digest
SHA256 3353348dd5b566bbd9407acce488c82e5f7a59cf27fbb9c80ad7c2ad8b68856f
MD5 8c9ac6c138c97a3a1f8eed41942577c3
BLAKE2b-256 ceef336774399c363ca5a874a45c39e85894bd6e6067c902d3a1bab1ea10aa6f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tma_authenticator-1.2.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 31e3f224b03679b7790b17be9ab75d508f34e0c89f9ebeff32fff78f4272bbe4
MD5 9773d77554bd8fade4c7eaa2702f8aa8
BLAKE2b-256 40481405e620428ddf745c28a6baf5d755ab7cc1126fa3a203dd3da5d16559f8

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