feat: integración real API-SIGMA-WEBCONTROL — login cloud con fallback offline

Flujo: POST /api/auth/empresas → POST /api/auth/login → JWT + apiKey + db_tenant.
Si la API no responde, cae silenciosamente a credenciales locales SQLite.
AuthException (credenciales incorrectas) se muestra al usuario sin fallback.
Perfil muestra badge "SIGMAC Cloud" / "Modo offline" según el modo de sesión.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Pablinux
2026-06-14 09:28:47 -05:00
co-authored by Claude Sonnet 4.6
parent 212d0bc8f2
commit 40c6f71caa
5 changed files with 281 additions and 15 deletions
+14
View File
@@ -116,6 +116,20 @@ packages:
description: flutter
source: sdk
version: "0.0.0"
http:
dependency: "direct main"
description:
name: http
url: "https://pub.dartlang.org"
source: hosted
version: "0.13.5"
http_parser:
dependency: transitive
description:
name: http_parser
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.2"
image:
dependency: transitive
description: