← Назад на главную

Интеграции с бэкендом

Авторизуйтесь через Telegram initData и синхронизируйте настройки пользователя с базой данных. Ваша тема и настройки сохраняются между сессиями.

🔐 Authentication

Click the button below to authenticate with Telegram's initData. The backend will validate the data using HMAC-SHA256 and create a secure session.

⚙️ Preferences Management

Please authenticate first to manage preferences.

🔄 Persistence Demo

Test the full round-trip: update preferences → reload page → preferences restored from database.

  1. Change theme or reduced motion setting above
  2. Click "Save Preferences" (syncs to database)
  3. Click "Reload Page" below
  4. Observe that your preferences are restored after reload

💡 Preferences persist across sessions because they're stored in the database, not just in localStorage or memory.