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.tar.gz (4.0 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-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tma_authenticator-1.2.0.tar.gz
  • Upload date:
  • Size: 4.0 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.2.0.tar.gz
Algorithm Hash digest
SHA256 c3834caed36fa6b301a9be903b463fb8aaa7d7af3404dac8bdc014f68a310fc0
MD5 d200709b87de0e08fdbb2c4fb90d8804
BLAKE2b-256 5fa2dc333959e7c9e40f14ae923454764a864f6d8552b48888145e2d14337cd9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tma_authenticator-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ae6b4ede8f8bea3fb6ed313d586b2080b8e49968d10ba5c3316b4ac84f42830
MD5 84a7be1c58d9d3dce8c121e162fc8837
BLAKE2b-256 02725907c4b977e3f998679131200c963c8cb96f2720100075e5ea43e290d95e

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