🔐 Added Authentication System [Changelog]
🚀 Features Added
- Implemented local authentication using biometrics and screen lock
- Added frosted glass blur effect for sensitive information
- Smart authentication persistence across app sessions
- Conditional authentication based on saved connections
🔧 Technical Changes
Authentication Service
- Created
LocalAuthService
with biometric and screen lock support - Added SharedPreferences for auth state persistence
- Implemented silent authentication mechanism
UI Components
- Added
AuthenticationDialog
with retry functionality - Created
BlurredText
widget for secure information display - Integrated authentication with dashboard screen
Security & Flow
- Authentication only required if saved connections exist
- Session persistence to prevent redundant authentication
- Graceful fallback to dialog if silent auth fails
🐛 Bug Fixes
- Fixed repeated authentication prompts on dashboard revisit
- Resolved unnecessary authentication for new users
- Corrected authentication flow for first-time app launch
- Optimized connection count check before authentication
📝 Directory Structure
lib/
├── core/
│ └── auth/
│ ├── services/
│ │ └── local_auth_service.dart
│ └── widgets/
│ └── auth_dialog.dart
└── core/widgets/
└── blurred_text.dart
🔄 Dependencies Added
- local_auth: ^2.1.7
- local_auth_android: ^1.0.34
- local_auth_ios: ^1.1.5
- shared_preferences: ^2.2.2
#flutter #security #authentication