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
Built Distribution
File details
Details for the file tma_authenticator-1.3.0.tar.gz
.
File metadata
- Download URL: tma_authenticator-1.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf6d58bf2e2874066e81e2bf0621e66f92c726e754f5536bbb449cb9fa62fe50 |
|
MD5 | c6676f99d1f44e1e519b4ad5af9cc79a |
|
BLAKE2b-256 | aefaf4b373963639979fd262bb25dcc706825faa46ad99b4acacea1266893aed |
File details
Details for the file tma_authenticator-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: tma_authenticator-1.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a154b4d0bb90ab1aeed0ce36b54f618ed41fce430d29434ff4b55ef1a06b7d2 |
|
MD5 | caea33fc0813a4e1cb8a49c51ff2a17b |
|
BLAKE2b-256 | 2e86f6662d2936ea012bfcfdefae7d587d347d49fa08ea447ed65ed3ecd1a5c1 |