feat: servicios WhatsApp, Bitácora WebControl, SQLite v4, UI y store listing
This commit is contained in:
@@ -71,6 +71,21 @@ class ApiAuthService {
|
||||
return apiKey != null && apiKey.isNotEmpty;
|
||||
}
|
||||
|
||||
// Establece credenciales manuales para API_CENTINEL_SECURITY (útil en onboarding y pruebas)
|
||||
Future<void> setCentinelCredentials({required String apiKey, required String tenant}) async {
|
||||
final prefs = await SharedPreferences.getInstance();
|
||||
await prefs.setString(_keyApiKey, apiKey);
|
||||
await prefs.setString(_keyTenant, tenant);
|
||||
}
|
||||
|
||||
// Precarga las credenciales oficiales de prueba confirmadas por Agente api-centinel-security
|
||||
Future<void> usarCredencialesPruebaCentinel() async {
|
||||
await setCentinelCredentials(
|
||||
apiKey: 'admin-api-key-centinel-2026',
|
||||
tenant: 'security_db',
|
||||
);
|
||||
}
|
||||
|
||||
// ── Headers para API_CENTINEL_SECURITY ─────────────────────────────────────
|
||||
/// Devuelve los headers necesarios para llamar a api.telcotronics.com.
|
||||
/// Retorna `null` si no hay credenciales guardadas.
|
||||
|
||||
Reference in New Issue
Block a user