F FRAGMENTAPI
Docs/Authentication

Authentication

Verify Telegram Login Widget data on the server.

Authentication uses the Telegram Login Widget. The server validates hash with TELEGRAM_BOT_TOKEN.

Verification endpoint

POST /api/auth/telegram
Content-Type: application/json

The payload includes id, first_name, optional username, auth_date and hash. Data older than 24 hours is rejected.

Authentication errors