Skip to main content

authyra_flutter 0.3.0 copy "authyra_flutter: ^0.3.0" to clipboard
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 an Authyra instance to the widget tree and refreshes the active session when the app resumes, if it is due.
  • AuthStateBuilder and AuthStateListenable, for widgets and for go_router redirects.
  • 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 #

  • OAuth2Provider is stateless: PKCE verifier, state and nonce live in the scope of one sign-in, through flutter_web_auth_2. The ID token's aud and nonce are checked; authorizationParameters can never override the security parameters.
  • Requires the 0.3.0 core API (Authyra, AuthSession, AuthTokens).

Removed #

  • GoogleProvider (browser OAuth): use the native authyra_google package.
  • GitHubProvider: GitHub requires a client secret, which an app cannot hold. Use BackendOAuthProvider.
  • AppleProvider: use the native authyra_apple package.
  • ProxyOAuthProvider and OAuth2CallbackHandler: replaced by BackendOAuthProvider, with no deep-link routing to wire.
  • AuthyraFlutterLogging: Authyra logs through package:logging; configure Logger.root as you would for any package.

0.1.0 - 2026-02-23 #

Added #

  • Re-exports the entire authyra package: 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: AuthStorage backed by flutter_secure_storage (Keychain on iOS/macOS, EncryptedSharedPreferences on Android, Web Crypto on web).
  • AuthyraFlutterLogging: Flutter-specific log configuration with useFlutterDefaults() (debugPrint in debug/profile, silent in release) and useProductionDefaults() (errors only)
1
likes
150
points
205
downloads

Documentation

Documentation
API reference

Publisher

verified publishermeragix.dev

Weekly Downloads

Flutter integration for Authyra: secure session storage, refresh on app resume, auth-state widgets, and OAuth 2.0 / backend-mediated sign-in.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#authentication #session #oauth #security

License

MIT (license)

Dependencies

authyra, clock, crypto, flutter, flutter_secure_storage, flutter_web_auth_2, http, logging

More

Packages that depend on authyra_flutter