NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev
pub.dev
A Flutter/Dart authentication client for awesome-lang-auth servers. Supports web (including WASM) via cookie + CSRF and native platforms via Bearer token.
Latest stable
1.10.7
Last release 1 months ago
12 Oct 2026
Too new to tell
only 2 release windows
Nearly every release is documented
notes for 5 of 5 stable releases
Nothing withdrawn
no release was ever pulled
1 months old
5 releases · first in 2026
Drag across the ruler to compare, or tap a release to open it.
`AuthState.userStream` no longer loses or delays state changes (#36):
AuthState.userStream no longer loses or delays state changes (#36):
userStream was an async* generator. It read the current user and subscribed to the changes only once the generator body had run, some microtasks after listen. A setUser in that window was lost, and the first value could already be the newer user instead of the one at listen time. This happened on every platform; the window differs between the VM, dart2js and dart2wasm.null from logout() had not arrived yet when logout() completed, so a subscription cancelled right after it missed the logout.userStream right after creating the client (for example a StreamBuilder in the first frame while the startup session check runs) could miss the initial login or logout.userStream now reads the current user and subscribes to the changes synchronously in listen, and forwards each change as soon as the state delivers it. The first event is still delivered asynchronously, and every event arrives in order. Pause, resume and cancel are forwarded, and dispose() still closes the stream.logout(), clearLocalSession() or a successful deleteAccount() ended the session could get 401/403 (for example 403 No access token provided) after the server had cleared the cookies. The client then sent POST /refresh, on web without X-CSRF-Token because the csrf cookie was gone, and emitted a second loggedOut event when that refresh failed.logout(), clearLocalSession(), a successful deleteAccount(), a failed refresh), a 401/403 is returned to the caller unchanged until the next successful GET /me: no refresh, no retry, no loggedOut or sessionRevoked event. This covers requests in flight when the session ended and requests started afterwards, such as route guards, polling or checkSession(). Every login flow ends with GET /me, so the next login restores the usual refresh. This applies to the api* methods and to httpClient.send(), on web and native.logout() marks the session as ended before it sends POST /logout, because the server can clear the cookies before its response arrives.TokenStorage or kept in memory, so a logged-out app no longer sends a fresh Authorization header or resumes the session on the next start. The original request is not retried, and the logout callback is not called again. A request of a new session no longer joins a refresh started for the ended one.logout() waits for a refresh in flight before it sends POST /logout, so the server revokes the refreshed session. On web the browser stores the refresh response's cookies itself and the client cannot undo that; clearLocalSession(), which is local, does not wait, so on web those cookies can still be stored after it./refresh is CSRF-exempt on the servers, so this refresh is how an idle web session resumes.logout() sends the refresh token on native (#33): in bearer mode POST /logout carries {"refreshToken": "..."}, read before the local tokens are cleared, so the server can revoke the session even when the access token has expired. Both servers accept it. Cookie mode sends no body, as before.loggedOut is emitted once instead of once per request.logout() waits for it, logout() sends POST /logout but emits no second loggedOut.refreshToken in the native POST /logout body.test/auth_state_test.dart: no change is lost when made right after listen, changes are delivered one microtask after setUser, late and multiple subscribers, pause, and dispose().logout(), clearLocalSession() and deleteAccount(), in cookie mode and native, through apiGet and httpClient.get, resolved with 403 No access token provided: no POST /refresh, the original error is returned, one loggedOut event. The mock server fails /refresh once the session is gone, as the real servers do, so the event count is checked.POST /refresh (and no other unsafe request) without X-CSRF-Token is sent.clearLocalSession() and logout(): no token written back (native), logout() sends POST /logout only after the refresh, with the refreshed token in the body (native).loggedOut.checkSession() do not refresh and emit no second loggedOut; after a new login a 401 refreshes as before.logout() sends the refresh token in the body on native and no body in cookie mode.Full Changelog: https://github.com/awesome-lang-auth/awesome-flutter-auth/compare/v1.10.6...v1.10.7
Your coding agent can read these notes before it upgrades. Set up the MCP server →
One column per month.
`OfflineTokenVerifier` works under dart2wasm (#34):
OfflineTokenVerifier works under dart2wasm (#34):
flutter build web --wasm every token was rejected with signature_invalid: Ed25519 verification internal error.ed25519_edwards. It does its arithmetic through adaptive_number, whose conditional import has no dart2wasm branch, so every operation threw UnsupportedError.pinenacl. It is pure Dart and synchronous, and it gives the same result on the VM, dart2js and dart2wasm.pinenacl ^0.6.0, which replaces ed25519_edwards. pinenacl has no dependencies, so this drops five packages from the dependency graph: ed25519_edwards, adaptive_number, fixnum, convert and crypto.
pinenacl below 0.6 gets a version-solving conflict with this release.web job that runs the suite on Chrome with dart2wasm, and the offline token tests with dart2js (the rest of the suite has a known dart2js-only test failure in test/auth_client_test.dart, unrelated to this change).Full Changelog: https://github.com/awesome-lang-auth/awesome-flutter-auth/compare/v1.10.5...v1.10.6
CSRF token never sent to a scheme-relative or foreign URI (#31):
isSameOriginPure treats a scheme-relative URL (//host/...) as cross-origin, including one pointing at the same host.AuthHttpClient takes the CSRF decision on the URI that is actually sent. httpClient.send() used to rebuild request.url under the API prefix, so //evil.com/x passed the same-origin check as /x. It never calls the CSRF provider for a scheme-relative target.deleteAccount(path:) and AuthOptions.deleteAccountPath reject scheme-relative paths (//evil.com/x, and /\evil.com/x, which Uri.parse normalises to //evil.com/x) and non-http(s) schemes. They return AuthResult.failure with errorCode: 'INVALID_PATH' and send no request.apiGet/apiPost/apiPatch/apiDelete throw ArgumentError for a scheme-relative path.revokeSession() and unlinkAccount() encode the interpolated segments (session handle, provider, providerAccountId) with Uri.encodeComponent. A ?, # or / in an id now stays inside its segment instead of becoming a query, fragment or extra segment; this was a regression since 1.10.2. getOAuthUrl() encodes the provider segment too.https://ita.app/s + /sessions resolved to https://ita.app/sessions and now resolves to https://ita.app/s/sessions.NativeAuthClient.clearLocalSession() awaits the token storage (#31):
TokenStorage.clear() and returns a Future that completes once the storage is cleared.Authorization: Bearer header with an asynchronous storage.loggedOut event are still updated synchronously.deleteAccount(path: '') falls back to /account (#31): an empty or blank path (or AuthOptions.deleteAccountPath) is treated as unset. It falls back to deleteAccountPath if that is set, otherwise to {apiPrefix}/account.available2faMethods validated eagerly (#31): non-string entries are dropped and a non-list value yields an empty list. Reading LoginResult.availableMethods no longer throws. A non-boolean requires2FASetup reads as false instead of throwing.AuthClient.clearLocalSession() returns Future<void> (was void). Existing calls such as auth.clearLocalSession(); still compile. Classes that implement or override clearLocalSession() with a void return type must change it to Future<void>.httpClient.apiGet('/api/auth/me') used to resolve to https://host/api/auth/me when the prefix was https://host/api/auth. It now resolves to https://host/api/auth/api/auth/me, the same as with a relative prefix. Pass paths relative to the prefix (/me), or use a full URL.Full Changelog: https://github.com/awesome-lang-auth/awesome-flutter-auth/compare/v1.10.4...v1.10.5
Native Token Storage Clearing: clearLocalSession() and deleteAccount() now reliably wipe token storage (_storage.clear()) and in-memory refresh tokens
clearLocalSession() and deleteAccount() now reliably wipe token storage (_storage.clear()) and in-memory refresh tokens (httpClient.clearTokens()) on native platforms, preventing subsequent requests from inadvertently sending stale credentials.deleteAccount() now triggers handleLogout() upon HTTP 2xx, emitting loggedOut and tearing down the authenticated session cleanly.path: "account" -> {prefix}/account) and query string handling (e.g. path: "/api/account?hard=1" preserves ?hard=1 rather than encoding it as %3F)._errorMessage, _errorCode, login(), and register() now safely parse non-string server error responses without throwing unhandled _TypeError exceptions.now parameter.deleteAccountPath, clearLocalSession(), and statusCode in README.md.Full Changelog: https://github.com/awesome-lang-auth/awesome-flutter-auth/compare/v1.10.3...v1.10.4
clearLocalSession() and successful deleteAccount() on NativeAuthClient now explicitly clear TokenStorage and reset AuthHttpClient._refreshToken. Subsequent requests do not leak stale Authorization: Bearer headers.login() and register() now safely inspect non-string error values (such as nested objects {"error": {"message": "..."}} or numbers {"error": 500}) without throwing _TypeError. Nested error messages and codes are extracted when present.deleteAccount(path:) URL resolution (#29):
deleteAccount(path: 'account')) are resolved to {apiPrefix}/account rather than concatenating without a separator.deleteAccount(path: '/api/account?hard=1')) preserve the query string instead of percent-encoding ? into the path (%3F).deleteAccountPath, clearLocalSession(), and AuthResult.statusCode.verify() and tryVerify() fallback to DateTime.now().toUtc().Add pure-Dart EdDSA (Ed25519) JWS compact offline verification in lib/offline_tokens.dart
Co-authored-by: Maribit lab@maribit.it
package:awesome_flutter_auth/offline_tokens.dart) (#25):
alg: EdDSA (Ed25519, RFC 8037 / RFC 8725) against pre-provisioned JWK OKP public keys.EdDSA only, rejecting none, HS256, Ed25519), expected typ, rejection of crit headers, kid lookup in key set, canonical Ed25519 signature verification (S < L, high bit clear), claim type validation, aud check, iss check, and expiration check (exp <= now) with an injectable clock.OfflineTokenReason and OfflineTokenException (no Error leaks for arbitrary input).OkpKeySet.fromJwks() and SubjectPublicKeyInfo (SPKI) PEM keys via OkpKey.fromPem().package:awesome_flutter_auth/awesome_flutter_auth.dart.environment.flutter constraint in pubspec.yaml, enabling the package to be resolved and tested in pure Dart environments (dart pub get + dart test).