Files
sendico/frontend/pweb/lib/services/auth.dart
2025-11-25 08:20:09 +03:00

19 lines
392 B
Dart

class AuthenticationService {
Future<bool> verifyTwoFactorCode(String code) async {
await Future.delayed(const Duration(seconds: 2));
if (code == '000000') {
return true;
} else {
throw const WrongCodeException();
}
}
}
class WrongCodeException implements Exception {
const WrongCodeException();
@override
String toString() => 'WrongCodeException';
}