flutter_authgear 5.1.0 copy "flutter_authgear: ^5.1.0" to clipboard
flutter_authgear: ^5.1.0 copied to clipboard

Authgear SDK for Flutter

Changelog #

5.1.0 #

Fixed #

  • The SDK now clears the session when a token refresh fails with invalid_dpop_proof (previously only invalid_grant was handled), so a restored refresh token that no longer matches the DPoP key no longer leaves sessionState stuck at authenticated with refresh retrying forever.

Added #

  • SessionStateChangeEvent.error now carries the error that triggered a session clear (e.g. an OAuthException with invalid_grant or invalid_dpop_proof) when reason == SessionStateChangeReason.invalid. It is null for all other reasons.

Deprecated #

  • SettingsPage.identity is deprecated. Use SettingsPage.settings to list identities, and methods like changeEmail/changePhone to change them.

5.0.0 #

Breaking changes #

  • Upgraded Flutter tooling to 3.44.5 (from 3.32.8). Consuming apps should be on a compatible Flutter version.
  • Android: raised the Android Gradle Plugin to 9.0.1 (from 8.7.3), Kotlin to 2.3.20 (from 2.1.0), compileSdk to 36 (from 35), and the Java/Kotlin build target to 17 (from 11). Consuming apps must build with a JDK 17 toolchain and an AGP/Gradle version compatible with AGP 9.