credential_manager_platform_interface 4.0.0 copy "credential_manager_platform_interface: ^4.0.0" to clipboard
credential_manager_platform_interface: ^4.0.0 copied to clipboard

A common platform interface for the credential_manager plugin. This package allows platform-specific implementations of credential_manager to share the same interface.

4.0.0 #

  • Added AllowCredential ({id, type, transports}) and CredentialLoginOptions.allowCredentials, letting a relying party restrict which passkey the OS offers for a WebAuthn assertion. Previously the field was dropped before reaching the platform, so an account bound to a single passkey still showed a picker listing every credential registered for the rpId.
  • CredentialLoginOptions.fromJson now filters out allowCredentials entries whose id is missing or not a String instead of throwing and failing the entire parse.
  • Added a backward-compatible prepareCredentials platform hook that defaults to false on unsupported platforms, enabling Android 14+ credential prefetching.
  • No breaking changes to the public Dart API.

3.0.0 #

  • Breaking: CredentialManagerPlatform.saveGoogleCredential gains an optional named {String? nonce} parameter. This was actually added in a prior commit without a version bump — the package published as 2.0.8 on pub.dev predates this change and does not have nonce, which broke flutter pub get/analysis for anyone resolving credential_manager_platform_interface from pub.dev (this repo's own melos workspace masked it locally via path-based resolution). Publishing this as a new major version is a correction, not new API surface.
  • Any external CredentialManagerPlatform implementation overriding saveGoogleCredential(bool useButtonFlow) without the nonce parameter will fail to compile against this version — add {String? nonce} to your override (Dart requires overrides to declare every named parameter of the overridden method, even optional ones).
  • No other functional changes; remaining diffs since 2.0.8 are formatting-only (120-column reformat).

2.0.8 #

  • Added isGmsAvailable to platform interface
  • Handle exception code 209 for Google Play Services not available
  • on Android, Google account is not logged in, the plugin will launch Google Sign-In flow.
  • Updated documentation

2.0.7 #

  • Fixed plugin score issues

2.0.6 #

  • Added exceptions and utilities to platform interface package
  • Exported CredentialException and related exception classes
  • Exported utility classes: CredentialType, PlatformExceptionHandler, and CredentialResponseParser
  • Improved modular architecture by centralizing shared code in platform interface

2.0.5 #

  • Initial release of platform interface package
  • Provides abstract CredentialManagerPlatform class
  • Supports modular plugin architecture
0
likes
150
points
4.79k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A common platform interface for the credential_manager plugin. This package allows platform-specific implementations of credential_manager to share the same interface.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on credential_manager_platform_interface