authyra_flutter 0.3.0
authyra_flutter: ^0.3.0 copied to clipboard
Flutter integration for Authyra: secure session storage, refresh on app resume, auth-state widgets, and OAuth 2.0 / backend-mediated sign-in.
Changelog #
All notable changes to the authyra_flutter package. All Authyra packages are released together with the same version.
0.3.0 #
Added #
AuthyraScope: provides anAuthyrainstance to the widget tree and refreshes the active session when the app resumes, if it is due.AuthStateBuilderandAuthStateListenable, for widgets and forgo_routerredirects.BackendOAuthProvider/BackendOAuthConfig: social logins whose OAuth flow runs on your backend (GitHub, GitLab, Discord...), with optional refresh and sign-out endpoints.SecureAuthStorage.deleteAll(), to clear sessions kept by the iOS Keychain after a reinstall.
Changed #
OAuth2Provideris stateless: PKCE verifier,stateandnoncelive in the scope of one sign-in, throughflutter_web_auth_2. The ID token'saudandnonceare checked;authorizationParameterscan never override the security parameters.- Requires the 0.3.0 core API (
Authyra,AuthSession,AuthTokens).
Removed #
GoogleProvider(browser OAuth): use the nativeauthyra_googlepackage.GitHubProvider: GitHub requires a client secret, which an app cannot hold. UseBackendOAuthProvider.AppleProvider: use the nativeauthyra_applepackage.ProxyOAuthProviderandOAuth2CallbackHandler: replaced byBackendOAuthProvider, with no deep-link routing to wire.AuthyraFlutterLogging: Authyra logs throughpackage:logging; configureLogger.rootas you would for any package.
0.1.0 - 2026-02-23 #
Added #
- Re-exports the entire
authyrapackage: one import covers everything. GoogleProvider: Google Sign-In via OAuth2 with PKCE and reverse-client-ID deep links.GitHubProvider: GitHub OAuth2 (client-secret flow, no PKCE).AppleProvider: Sign in with Apple using ES256 JWT client secrets.OAuth2Provider/OAuth2Config: generic OAuth2 with PKCE for any standards-compliant IdP.ProxyOAuthProvider/ProxyOAuthConfig: backend-delegated OAuth: browser flow on the server, custom token returned via deep link.OAuth2CallbackHandler: static deep-link router that dispatches incoming URIs to registered providers by URI scheme.SecureAuthStorage:AuthStoragebacked byflutter_secure_storage(Keychain on iOS/macOS, EncryptedSharedPreferences on Android, Web Crypto on web).AuthyraFlutterLogging: Flutter-specific log configuration withuseFlutterDefaults()(debugPrintin debug/profile, silent in release) anduseProductionDefaults()(errors only)