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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tma_authenticator-1.2.0.dev23150.tar.gz.
File metadata
- Download URL: tma_authenticator-1.2.0.dev23150.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
748e6d66165b18e9159db863726fb4040db52112b34c8061f720e476c7220c8a
|
|
| MD5 |
988c06fa24d4bc3953849ba81b6d557e
|
|
| BLAKE2b-256 |
58fab889d20bbba1a6b69f691d295fdfa916cece32a1e26c9c4383f62a04d6f0
|
File details
Details for the file tma_authenticator-1.2.0.dev23150-py3-none-any.whl.
File metadata
- Download URL: tma_authenticator-1.2.0.dev23150-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.11.10 Linux/5.4.0-146-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c8b6990dd16961cac3c9bb44255009d49dbc8eec3d07f74c53dcd8b4d2ef48a
|
|
| MD5 |
81d3518779a81783eabd755a16d0c94d
|
|
| BLAKE2b-256 |
4bfc7c3f6cff694043a9b6c8979ccab056317dbace6c9c0eb498118e59857661
|