Привет! Твоя задача выяснить что сделано в текущем проекте по этим вопросам, записать…
Jump to turn (41)
- 1Привет! Твоя задача выяснить что сделано в текущем проекте по этим вопросам, зап
- 2File Paths (Absolute) Frontend: /home/beep/projects/VPNBussiness/frontend/src/st
- 3Key Security Features SEC-01 - HTTP-only cookie tokens (XSS-safe, automatic cred
- 4Summary Table | Aspect | Implementation | |--------|-----------------| | Token S
- 59. Backend Auth Endpoints Key Routes (backend/src/presentation/api/v1/auth/route
- 68. Additional Auth Components Login Page (frontend/src/app/[locale]/(auth)/login
- 77. AuthGuard Component File: /home/beep/projects/VPNBussiness/frontend/src/featu
- 86. API Client & Auth API API Client (/home/beep/projects/VPNBussiness/frontend/s
- 95. Auth Provider File: /home/beep/projects/VPNBussiness/frontend/src/app/provide
- 104. Auth Store (Zustand) File: /home/beep/projects/VPNBussiness/frontend/src/stor
- 113. Token Refresh Interceptor 401 Refresh Flow (/home/beep/projects/VPNBussiness/
- 122. Token Storage Strategy SEC-01 Implementation: HTTP-Only Cookies (Server-Contr
- 131. Auth Pages Located All auth pages are in /home/beep/projects/VPNBussiness/fro
- 14File Paths Reference Authentication Files: /home/beep/projects/VPNBussiness/cybe
- 1512. Summary Table | Aspect | Details | |--------|---------| | Framework | Flutte
- 1611. Security Highlights Token Encryption: Secrets in fluttersecurestorage (platf
- 1710. Directory Structure
- 189. Local Data Storage Strategy SecureStorage (Encrypted): Access token Refresh t
- 198. Backend Mobile Auth API File: /home/beep/projects/VPNBussiness/backend/src/pr
- 207. Proactive Token Refresh File: /home/beep/projects/VPNBussiness/cybervpnmobile
- 216. Models & Data Types User Model File: /home/beep/projects/VPNBussiness/cybervp
- 225. API Client Implementation Dio HTTP Client with Interceptors: File: /home/beep
- 234. Auth State Management Riverpod 3.x with AsyncNotifier pattern (not autoDispos
- 243. Token Storage Sensitive Data: fluttersecurestorage Tokens are encrypted at re
- 252. Authentication Flow The mobile app supports multiple authentication methods:
- 261. Framework Flutter - The mobile app is built using Flutter (not React Native).
- 27SUMMARY CyberVPN is a production-grade VPN business platform with: Robust OAuth
- 28KEY FILES REFERENCE | Category | Files | |----------|-------| | Infrastructure C
- 29ADDITIONAL BUSINESS MODEL INSIGHTS User Types (3 separate models): AdminUserMode
- 30BUSINESS REQUIREMENTS 4. OAuth Providers & Social Login Files: /home/beep/projec
- 31INFRASTRUCTURE 1. Redis Usage File: /home/beep/projects/VPNBussiness/infra/docke
- 32Summary The CyberVPN Telegram bot is a production-ready microservice built with
- 339. Deployment Commands Development (Polling): Production (Docker with Webhook):
- 348. Key Code Snippets Bot Creation (bot.py): User Registration (start.py): Authen
- 357. Middleware Stack Execution Order (/home/beep/projects/VPNBussiness/services/t
- 366. Backend API Integration API Client (/home/beep/projects/VPNBussiness/services
- 375. Bot Configuration and Deployment Configuration File: /home/beep/projects/VPNB
- 384. Bot Commands and Handlers Command Structure (/home/beep/projects/VPNBussiness
- 393. Telegram ID Linking to Database Database Model: MobileUserModel (/home/beep/p
- 402. User Authentication in Bot Authentication Flow: User Registration (Automatic)
- 411. Bot Framework Framework: aiogram 3.25+ (modern async Telegram Bot API wrapper
- User
Привет! Твоя задача выяснить что сделано в текущем проекте по этим вопросам, записать это в .md файл 1. Backend (самое важное)
Текущая структура auth-сервиса (модели User, Session, токены) — скинь основные файлы/схемы Как сейчас выдаются и валидируются JWT (middleware, endpoints) Какая БД (PostgreSQL?) и ORM (SQLAlchemy?) Есть ли уже OAuth провайдеры или только email/password? Как устроен email-сервис (отправка писем) — есть ли уже?
- Frontend
Текущие страницы auth (login, register, reset password) — какие есть? Как хранятся токены (localStorage, httpOnly cookies, memory?) Как работает interceptor для refresh токенов?
- Telegram Bot
Как сейчас авторизуется пользователь в боте? Привязан ли Telegram ID к User в БД?
- Mobile App
Фреймворк (React Native, Flutter?) Как сейчас хранятся токены и работает auth flow?
- Infra
Есть ли Redis (для refresh токенов / rate limiting)? Как деплоится (Docker, K8s?) — для понимания session management
- Бизнес-требования
Какие OAuth провайдеры нужны (Google, Apple, GitHub, Telegram Login)? Нужна ли 2FA (TOTP, SMS)? Нужна ли верификация email при регистрации? Какие роли/permissions (admin, user, и т.д.)? Мультитенантность нужна?