Changelog

Notable changes to Authyra, all packages released together.

All packages share one version. Detailed changes are in each package's CHANGELOG.md on pub.dev.

0.3.0

A rewrite around one idea: Authyra is the session layer of apps that talk to their own backend.

New

  • authyra_dio: attaches tokens to Dio requests and recovers from 401 with a single shared refresh.
  • authyra_google: native Google Sign-In, identity only or exchanged with your backend.
  • BackendOAuthProvider: social logins (GitHub, GitLab, Discord...) whose flow runs on your backend.
  • Rotation-safe refresh: one refresh per session at a time, compare-and-set on tokens, the latest refresh token always used.
  • Failure model: network and server errors never end a session and are retried with backoff; a rejected refresh token does.
  • AuthPolicy: refuse a sign-in or a switch.
  • Flutter: AuthyraScope (refresh on resume when due), AuthStateBuilder, AuthStateListenable.

Changed

  • Authyra replaces AuthyraClient, AuthyraInstance, SessionManager and AccountManager as the single entry point.
  • Multi-account: any stored session can be used for a request, not only the active one.
  • OAuth2Provider is stateless: PKCE, state and nonce live in the sign-in call, with no deep-link routing.
  • AppleProvider separates identity-only sign-in from AppleProvider.withExchange.
  • States are AuthUnknown, AuthSignedIn and AuthSignedOut; events are Session*Event.

Removed

  • The browser-based Google and GitHub providers: use authyra_google, or BackendOAuthProvider for GitHub.
  • AuthyraPlugin: use AuthPolicy for gating and events for observation.
  • ProxyOAuthProvider and OAuth2CallbackHandler: replaced by BackendOAuthProvider, with no deep-link routing.
  • AuthProviderType.

0.2.0 and earlier

Early versions with a different API. Nobody should start from them.

Copyright © 2026