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
AuthyrareplacesAuthyraClient,AuthyraInstance,SessionManagerandAccountManageras the single entry point.- Multi-account: any stored session can be used for a request, not only the active one.
OAuth2Provideris stateless: PKCE,stateandnoncelive in the sign-in call, with no deep-link routing.AppleProviderseparates identity-only sign-in fromAppleProvider.withExchange.- States are
AuthUnknown,AuthSignedInandAuthSignedOut; events areSession*Event.
Removed
- The browser-based Google and GitHub providers: use
authyra_google, orBackendOAuthProviderfor GitHub. AuthyraPlugin: useAuthPolicyfor gating andeventsfor observation.ProxyOAuthProviderandOAuth2CallbackHandler: replaced byBackendOAuthProvider, with no deep-link routing.AuthProviderType.
0.2.0 and earlier
Early versions with a different API. Nobody should start from them.