This commit is contained in:
2025-11-09 15:42:50 +05:30
parent 5b7f3f0096
commit 3e88aad43f
11 changed files with 332 additions and 98 deletions

View File

@@ -141,4 +141,25 @@ class AuthService {
}
return;
}
}
Future setTncflag() async{
try {
final response = await _dio.post(
'/api/auth/tnc',
data: {"flag": true},
);
if (response.statusCode != 200) {
throw AuthException('Failed to proceed with T&C');
}
}
on DioException catch (e) {
if (kDebugMode) {
print(e.toString());
}
throw NetworkException('Network error during T&C Setup');
} catch (e) {
throw UnexpectedException(
'Unexpected error: ${e.toString()}');
}
}
}