PackageTrack
Sign in Get early access

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 2026
Release Pre-release

Releases

latest 2
  1. 0.2.1 24 May 2026
    Release notes

    Changed

    • Rewrote README with clear quickstart, feature overview, and installation instructions.
    • Renamed AppId enum to a plain String parameter for generality across consumers.
    • Translated public-facing doc comments to English.
    Open source →
  2. 0.2.0 24 May 2026
    Release notes

    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 SocialAuth con SocialAuthConfig y SocialProvider.
      • DeepLinkListener abstracto (la app provee implementación con app_links).
      • El SDK NO depende de app_links ni url_launcher — pattern de factory.
    • Contract compartido con TS: cuando agregás un AppId o cambiás AuthUser, los tests de conformance del paquete @anfibia/ajolote-schemas fallan si los modelos Dart y TS divergen.

    Changed

    • AjoloteClient ahora 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() lanza AuthException(expiredToken) si la sesión también expiró — usar try/catch y redirigir a login.


    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive