ajolote
Cliente Flutter para el servicio de autenticación centralizado de Anfibia/4Quinas. Multi-tenant, JWT, OTP por SMS, biometría.
0.2.1
cuatro-quinas/ajolote
What this package is like to depend on
Last release 3 months ago
24 May 2026
Too new to tell
only 2 dated releases
Nearly every release is documented
notes for 2 of 2 stable releases
Nothing withdrawn
no release was ever pulled
3 months old
2 releases · first in 2026
2 releases in the last 12 months
see the full history below
Release timeline
2 releases · May 2026 to May 2026Releases
latest 2-
0.2.124 May 2026Release notes
Open source →Changed
- Rewrote README with clear quickstart, feature overview, and installation instructions.
- Renamed
AppIdenum to a plainStringparameter for generality across consumers. - Translated public-facing doc comments to English.
-
0.2.024 May 2026Release notes
Open source →Added
- Refresh automático del access token con dedupe de concurrencia (
TokenRefresher).AjoloteClient.getValidToken()devuelve un JWT siempre fresco.- N requests concurrentes con JWT expirado disparan 1 sola llamada de refresh.
- OAuth social (Google) con deep links + validación de state contra CSRF.
- Nuevo módulo
SocialAuthconSocialAuthConfigySocialProvider. DeepLinkListenerabstracto (la app provee implementación conapp_links).- El SDK NO depende de
app_linksniurl_launcher— pattern de factory.
- Nuevo módulo
- Contract compartido con TS: cuando agregás un
AppIdo cambiásAuthUser, los tests de conformance del paquete@anfibia/ajolote-schemasfallan si los modelos Dart y TS divergen.
Changed
AjoloteClientahora maneja dos tokens internamente: session token (largo, en SecureStore) y access token JWT (corto, en memoria).- El access token se refresca automáticamente cuando le quedan <60s de vida (configurable con
refreshThreshold).
Migration desde 0.1.0
Si usabas
auth.http.getToken()para firmar requests a tu API, cambiar a:// Antes final token = await auth.http.getToken(); // Después final token = await auth.getValidToken();getValidToken()lanzaAuthException(expiredToken)si la sesión también expiró — usar try/catch y redirigir a login.
- Refresh automático del access token con dedupe de concurrencia (