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.0.0.dev22593.tar.gz
.
File metadata
- Download URL: tma_authenticator-1.0.0.dev22593.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 | d93e915d41c2128fba92fc08b60471d3275453cf73dbe5b730fe82c4841f5b74 |
|
MD5 | 3f285026451ccf0cc239b5f2d131c643 |
|
BLAKE2b-256 | 9817884c3614f304c525cb2bb11fb8c8ba334b134735037e9f218e2c2c343d05 |
File details
Details for the file tma_authenticator-1.0.0.dev22593-py3-none-any.whl
.
File metadata
- Download URL: tma_authenticator-1.0.0.dev22593-py3-none-any.whl
- Upload date:
- Size: 6.0 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 | 551bb00bed752cb7273affab345c47f0bfb83f706b1d181ffe507b1696d5f500 |
|
MD5 | d30826c4ede58cf1eb8e78def3756e39 |
|
BLAKE2b-256 | 8e66ace9da4a56384e099e4f3e2ef28696b3c0580c45d0ce554b11e7fa5685a8 |