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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tma_authenticator-1.2.0.dev23148.tar.gz
  • Upload date:
  • Size: 4.2 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.dev23148.tar.gz
Algorithm Hash digest
SHA256 82485648037eb567ffa9750eae54fdfd230cde680ff0981a1be6dc53743e4ab2
MD5 7c70dace92321fc416b02da087bd5c61
BLAKE2b-256 fcaa285e1885059c734bf76595936a53a7b357725f83cffff5e27879385d7c76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tma_authenticator-1.2.0.dev23148-py3-none-any.whl
Algorithm Hash digest
SHA256 0ee0021af4a72bdfae73b814cf423352ff49923bcbbd268f35ae12f90a2ccf2d
MD5 2b9b074e1d6cd1a43099087107cafc39
BLAKE2b-256 818bc8a4c54404528fd0da324dcf14fda50250888b2334c68bfe355705a78aa3

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